Commit a92be1d0 authored by Christophe Palmann's avatar Christophe Palmann

ENH: fixed small pb in OTBModuleHeaderTest.cmake (see also 68fc93053ce5)

parent fa2f3bcf
......@@ -22,27 +22,21 @@ add_custom_target( OTBHeaderTests
SET(BANNED_HEADERS)
#if(NOT OTB_USE_OPENCV)
# string(CONCAT BANNED_HEADERS ${BANNED_HEADERS} "otbDecisionTreeMachineLearningModelFactory.h otbDecisionTreeMachineLearningModel.h otbKNearestNeighborsMachineLearningModelFactory.h otbKNearestNeighborsMachineLearningModel.h otbRandomForestsMachineLearningModelFactory.h otbRandomForestsMachineLearningModel.h otbSVMMachineLearningModelFactory.h otbSVMMachineLearningModel.h otbGradientBoostedTreeMachineLearningModelFactory.h otbGradientBoostedTreeMachineLearningModel.h otbBoostMachineLearningModelFactory.h otbBoostMachineLearningModel.h otbNeuralNetworkMachineLearningModelFactory.h otbNeuralNetworkMachineLearningModel.h otbNormalBayesMachineLearningModelFactory.h otbNormalBayesMachineLearningModel.h otbRequiresOpenCVCheck.h ")
# string(STRIP ${BANNED_HEADERS} BANNED_HEADERS)
# string(CONCAT BANNED_HEADERS ${BANNED_HEADERS} " ")
#endif()
if(NOT OTB_USE_OPENCV)
SET(BANNED_HEADERS "${BANNED_HEADERS} otbDecisionTreeMachineLearningModelFactory.h otbDecisionTreeMachineLearningModel.h otbKNearestNeighborsMachineLearningModelFactory.h otbKNearestNeighborsMachineLearningModel.h otbRandomForestsMachineLearningModelFactory.h otbRandomForestsMachineLearningModel.h otbSVMMachineLearningModelFactory.h otbSVMMachineLearningModel.h otbGradientBoostedTreeMachineLearningModelFactory.h otbGradientBoostedTreeMachineLearningModel.h otbBoostMachineLearningModelFactory.h otbBoostMachineLearningModel.h otbNeuralNetworkMachineLearningModelFactory.h otbNeuralNetworkMachineLearningModel.h otbNormalBayesMachineLearningModelFactory.h otbNormalBayesMachineLearningModel.h otbRequiresOpenCVCheck.h")
endif()
#if(NOT OTB_USE_LIBSVM)
# string(CONCAT BANNED_HEADERS ${BANNED_HEADERS} "otbLibSVMMachineLearningModel.h otbLibSVMMachineLearningModelFactory.h")
# string(STRIP ${BANNED_HEADERS} BANNED_HEADERS)
# string(CONCAT BANNED_HEADERS ${BANNED_HEADERS} " ")
#endif()
if(NOT OTB_USE_LIBSVM)
SET(BANNED_HEADERS "${BANNED_HEADERS} otbLibSVMMachineLearningModel.h otbLibSVMMachineLearningModelFactory.h")
endif()
message(${BANNED_HEADERS})
# ************ ADD YOUR BANNED HEADERS HERE ************
#if(CONDITION)
# string(CONCAT BANNED_HEADERS ${BANNED_HEADERS} "BANNED-HEADER1.h")
# string(STRIP ${BANNED_HEADERS} BANNED_HEADERS)
# string(CONCAT BANNED_HEADERS ${BANNED_HEADERS} " ")
# SET(BANNED_HEADERS "${BANNED_HEADERS} BANNED-HEADER1.h BANNED-HEADER2.h")
#endif()
#string(STRIP ${BANNED_HEADERS} BANNED_HEADERS)
macro( otb_module_headertest _name )
......
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