Commit b79c603f authored by Christophe Palmann's avatar Christophe Palmann

ENH: better fix (see also d62758b84077)

parent a43ca34c
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})
......@@ -45,8 +42,8 @@ target_link_libraries(HarrisExample ${OTB_LIBRARIES})
add_executable(HuMomentsImageFunctionExample HuMomentsImageFunctionExample.cxx)
target_link_libraries(HuMomentsImageFunctionExample ${OTB_LIBRARIES})
if (Module_OTBVectorDataRendering)
add_executable(LineSegmentDetectorExample LineSegmentDetectorExample.cxx ${DataRendering_HEADERS})
if (Module_OTBVectorDataRendering AND OTB_USE_MAPNIK)
add_executable(LineSegmentDetectorExample LineSegmentDetectorExample.cxx)
target_link_libraries(LineSegmentDetectorExample ${OTB_LIBRARIES})
endif()
......@@ -62,8 +59,8 @@ target_link_libraries(ParallelLineDetectionExample ${OTB_LIBRARIES})
add_executable(RatioLineDetectorExample RatioLineDetectorExample.cxx)
target_link_libraries(RatioLineDetectorExample ${OTB_LIBRARIES})
if (Module_OTBVectorDataRendering)
add_executable(RightAngleDetectionExample RightAngleDetectionExample.cxx ${DataRendering_HEADERS})
if (Module_OTBVectorDataRendering AND OTB_USE_MAPNIK)
add_executable(RightAngleDetectionExample RightAngleDetectionExample.cxx)
target_link_libraries(RightAngleDetectionExample ${OTB_LIBRARIES})
endif()
......
......@@ -192,7 +192,7 @@ otb_add_test(NAME feTeCloudDetectionExampleTest COMMAND ${OTB_TEST_DRIVER}
553 467 734 581 0.4 0.6 1.0
)
if (Module_OTBVectorDataRendering)
if (Module_OTBVectorDataRendering AND OTB_USE_MAPNIK)
# ------- Line Segment Detector test----------
otb_add_test(NAME feTeLineSegmentDetectorExampleTest COMMAND ${OTB_TEST_DRIVER}
......
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