]> Creatis software - FrontAlgorithms.git/blob - examples/CMakeLists.txt
4feb556f0db0c20ac5c29385713dcd31e7c34ff3
[FrontAlgorithms.git] / examples / CMakeLists.txt
1 option(BUILD_EXAMPLES "Build cpPlugins-free examples." OFF)
2 if(BUILD_EXAMPLES)
3   set(
4     _examples
5     RegionGrow_Tautology
6     RegionGrow_BinaryThreshold
7     RegionGrow_Mori
8     Dijkstra_Maurer
9     #CreateMoriInputImage
10     #BronchiiInitialSegmentationWithMori
11     #BronchiiInitialSegmentationWithBinaryThresholdRegionGrow
12     )
13   option(BUILD_EXAMPLE_SANDBOX "Build sandbox example." OFF)
14   if(BUILD_EXAMPLE_SANDBOX)
15     list(APPEND _examples sandbox)
16   endif(BUILD_EXAMPLE_SANDBOX)
17   include_directories(
18     ${PROJECT_SOURCE_DIR}/lib
19     ${PROJECT_BINARY_DIR}/lib
20     )
21   foreach(_e ${_examples})
22     add_executable(fpa_example_${_e} ${_e}.cxx)
23     target_link_libraries(fpa_example_${_e} ${ITK_LIBRARIES})
24   endforeach(_e)
25 endif(BUILD_EXAMPLES)
26
27 ## eof - $RCSfile$