Commit 26e6b813 authored by Manuel Grizonnet's avatar Manuel Grizonnet

BUG: mantis 1481 - compile KMeansClassification application only if otb is...

BUG: mantis 1481 - compile KMeansClassification application only if otb is compiled with shark support
parent 888a713f
......@@ -53,10 +53,12 @@ otb_create_application(
SOURCES otbComputePolylineFeatureFromImage.cxx
LINK_LIBRARIES ${${otb-module}_LIBRARIES})
otb_create_application(
NAME KMeansClassification
SOURCES otbKMeansClassification.cxx
LINK_LIBRARIES ${${otb-module}_LIBRARIES})
if(OTB_USE_SHARK)
otb_create_application(
NAME KMeansClassification
SOURCES otbKMeansClassification.cxx
LINK_LIBRARIES ${${otb-module}_LIBRARIES})
endif()
otb_create_application(
NAME TrainImagesClassifier
......
......@@ -405,6 +405,8 @@ private:
"KMeansClassification is a composite application, "
"using an existing training and classification application."
"The SharkKMeans model is used.\n"
"KMeansClassification application is only available if OTB is compiled with Shark support"
"(CMake option OTB_USE_SHARK=ON)\n"
"The steps of this composite application :\n"
"1) ImageEnveloppe : create a shapefile (1 polygon),\n"
"2) PolygonClassStatistics : compute the statistics,\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment