diff --git a/Examples/FeatureExtraction/CMakeLists.txt b/Examples/FeatureExtraction/CMakeLists.txt index 6d479b75ef941cf270f1dc65a47c5534e413133b..0739bf5cc3190f61cf5144a44648d5f2a8f896c0 100644 --- a/Examples/FeatureExtraction/CMakeLists.txt +++ b/Examples/FeatureExtraction/CMakeLists.txt @@ -1,5 +1,8 @@ project(FeatureExtractionExamples) +include_directories("${OTB_SOURCE_DIR}/Modules/Filtering/VectorDataRendering/include") +file(GLOB DataRendering_HEADERS "${OTB_SOURCE_DIR}/Modules/Filtering/VectorDataRendering/include/*.h") + add_executable(AlignmentsExample AlignmentsExample.cxx) target_link_libraries(AlignmentsExample ${OTB_LIBRARIES}) @@ -43,7 +46,7 @@ add_executable(HuMomentsImageFunctionExample HuMomentsImageFunctionExample.cxx) target_link_libraries(HuMomentsImageFunctionExample ${OTB_LIBRARIES}) if (Module_OTBVectorDataRendering) - add_executable(LineSegmentDetectorExample LineSegmentDetectorExample.cxx) + add_executable(LineSegmentDetectorExample LineSegmentDetectorExample.cxx ${DataRendering_HEADERS}) target_link_libraries(LineSegmentDetectorExample ${OTB_LIBRARIES}) endif() @@ -60,7 +63,7 @@ add_executable(RatioLineDetectorExample RatioLineDetectorExample.cxx) target_link_libraries(RatioLineDetectorExample ${OTB_LIBRARIES}) if (Module_OTBVectorDataRendering) - add_executable(RightAngleDetectionExample RightAngleDetectionExample.cxx) + add_executable(RightAngleDetectionExample RightAngleDetectionExample.cxx ${DataRendering_HEADERS}) target_link_libraries(RightAngleDetectionExample ${OTB_LIBRARIES}) endif()