Skip to content
Snippets Groups Projects
Commit d1676020 authored by Christophe Palmann's avatar Christophe Palmann
Browse files

ENH: OTBModuleHeaderTest.cmake, dummy removed

parent c16dee7b
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ add_custom_target( OTBHeaderTests
SET(BANNED_HEADERS 'dummy')
SET(BANNED_HEADERS)
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()
......
......@@ -81,7 +81,11 @@ def main():
module_binary_path = sys.argv[3]
maximum_number_of_headers = int(sys.argv[4])
test_num = int(sys.argv[5])
BANNED_HEADERS = sys.argv[6].split(' ')
if len(sys.argv) == 7:
BANNED_HEADERS = sys.argv[6].split(' ')
else:
BANNED_HEADERS = []
# Get all the header files.
include_dir = os.path.join(module_source_path, 'include')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment