]> Creatis software - FrontAlgorithms.git/blobdiff - examples/CMakeLists.txt
...
[FrontAlgorithms.git] / examples / CMakeLists.txt
index e6d93b88d0f5e43c7f6e7a99216e2a0896750822..f0c88265d1000a4e2bf26d87941092e5643cb49e 100644 (file)
@@ -1,21 +1,22 @@
-OPTION(BUILD_Examples "Build simple examples?" OFF)
-
-IF(BUILD_Examples)
+OPTION(BUILD_EXAMPLES "Build cpPlugins-free examples." OFF)
+IF(BUILD_EXAMPLES)
   SET(
     _examples
-    RegionGrow_00
-    FastMarching_00
-    MoriRegionGrow_00
-    Skeleton_00
+    RegionGrow_Tautology
+    RegionGrow_BinaryThreshold
+    RegionGrow_Mori
+    #CreateMoriInputImage
+    #BronchiiInitialSegmentationWithMori
+    #BronchiiInitialSegmentationWithBinaryThresholdRegionGrow
     )
   INCLUDE_DIRECTORIES(
-    ${PROJECT_SOURCE_DIR}/lib
-    ${PROJECT_BINARY_DIR}/lib
+    ${PROJECT_SOURCE_DIR}/libs
+    ${PROJECT_BINARY_DIR}/libs
     )
-  FOREACH(_example ${_examples})
-    ADD_EXECUTABLE(fpa_example_${_example} ${_example}.cxx)
-    TARGET_LINK_LIBRARIES(fpa_example_${_example} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
-  ENDFOREACH(_example)
-ENDIF(BUILD_Examples)
+  FOREACH(_e ${_examples})
+    ADD_EXECUTABLE(fpa_example_${_e} ${_e}.cxx)
+    TARGET_LINK_LIBRARIES(fpa_example_${_e} ${ITK_LIBRARIES})
+  ENDFOREACH(_e)
+ENDIF(BUILD_EXAMPLES)
 
 ## eof - $RCSfile$