]> Creatis software - FrontAlgorithms.git/blob - examples/CMakeLists.txt
d36f2550a5e420bead78ef2e2148c237fcf78565
[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     SkeletonFilter
10     #CreateMoriInputImage
11     #BronchiiInitialSegmentationWithMori
12     #BronchiiInitialSegmentationWithBinaryThresholdRegionGrow
13     )
14   option(BUILD_EXAMPLE_SANDBOX "Build sandbox example." OFF)
15   if(BUILD_EXAMPLE_SANDBOX)
16     list(APPEND _examples sandbox)
17   endif(BUILD_EXAMPLE_SANDBOX)
18   include_directories(
19     ${PROJECT_SOURCE_DIR}/lib
20     ${PROJECT_BINARY_DIR}/lib
21     )
22   foreach(_e ${_examples})
23     add_executable(fpa_example_${_e} ${_e}.cxx)
24     target_link_libraries(fpa_example_${_e} fpa)
25   endforeach(_e)
26 endif(BUILD_EXAMPLES)
27
28 ## eof - $RCSfile$