From 13dc259635b4bfc218eb61aafdf5b1a352ac0c4e Mon Sep 17 00:00:00 2001
From: Christophe Palmann <christophe.palmann@c-s.fr>
Date: Thu, 2 Apr 2015 12:02:16 +0200
Subject: [PATCH] COMP: added missing headers (DataRendering)

---
 Examples/FeatureExtraction/CMakeLists.txt | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Examples/FeatureExtraction/CMakeLists.txt b/Examples/FeatureExtraction/CMakeLists.txt
index 6d479b75ef..0739bf5cc3 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()
 
-- 
GitLab