diff --git a/Applications/Classification/CMakeLists.txt b/Applications/Classification/CMakeLists.txt index 9d6f9083a960a6cf129a3b1e6a78dd2f9bf40a88..d496293387e38410295072701689e37c1ce96948 100644 --- a/Applications/Classification/CMakeLists.txt +++ b/Applications/Classification/CMakeLists.txt @@ -34,6 +34,8 @@ OTB_CREATE_APPLICATION(NAME ClassificationMapRegularization SOURCES otbClassificationMapRegularization.cxx LINK_LIBRARIES OTBIO;OTBCommon;OTBBasicFilters) -OTB_CREATE_APPLICATION(NAME TrainMachineLearningImagesClassifier - SOURCES otbTrainMachineLearningImagesClassifier.cxx - LINK_LIBRARIES OTBIO;OTBCommon;OTBBasicFilters;OTBFeatureExtraction;OTBLearning;OTBMachineLearning) \ No newline at end of file +IF(OTB_USE_OPENCV) + OTB_CREATE_APPLICATION(NAME TrainMachineLearningImagesClassifier + SOURCES otbTrainMachineLearningImagesClassifier.cxx + LINK_LIBRARIES OTBIO;OTBCommon;OTBBasicFilters;OTBFeatureExtraction;OTBLearning;OTBMachineLearning) +ENDIF(OTB_USE_OPENCV) \ No newline at end of file