]> Creatis software - clitk.git/blob - segmentation/CMakeLists.txt
changed /usr/bin/env to /bin/env and added date before and after the data transfer
[clitk.git] / segmentation / CMakeLists.txt
1 #=========================================================
2
3 # Add Libraries used in vv and clitk to avoid recompilation
4 foreach(clitkTool clitkExtractLung clitkExtractPatient clitkConnectedComponentLabeling clitkRegionGrowing)
5     WRAP_GGO(${clitkTool}_GGO_C ${clitkTool}.ggo)
6     set(GGO_C_FILES ${GGO_C_FILES} ${${clitkTool}_GGO_C})
7 endforeach(clitkTool)
8 add_library(clitkSegmentationGgoLib
9             clitkFilterWithAnatomicalFeatureDatabaseManagement.cxx
10             clitkAnatomicalFeatureDatabase.cxx
11             clitkSliceBySliceRelativePositionFilter_uchar.cxx
12             ${GGO_C_FILES})
13
14 #=========================================================
15
16 if(CLITK_BUILD_SEGMENTATION)
17     WRAP_GGO(clitkConnectedComponentLabeling_GGO_C clitkConnectedComponentLabeling.ggo)
18     add_executable(clitkConnectedComponentLabeling clitkConnectedComponentLabeling.cxx ${clitkConnectedComponentLabeling_GGO_C})
19     target_link_libraries(clitkConnectedComponentLabeling clitkCommon)
20     set(SEGMENTATION_INSTALL clitkConnectedComponentLabeling)
21
22     add_executable(clitkExtractPatient clitkExtractPatient.cxx ${clitkExtractPatient_GGO_C})
23     target_link_libraries(clitkExtractPatient clitkCommon clitkSegmentationGgoLib)
24     set(SEGMENTATION_INSTALL ${SEGMENTATION_INSTALL} clitkExtractPatient)
25
26     add_executable(clitkExtractLung clitkExtractLung.cxx  ${clitkExtractLung_GGO_C})
27     target_link_libraries(clitkExtractLung clitkSegmentationGgoLib clitkCommon)
28     set(SEGMENTATION_INSTALL ${SEGMENTATION_INSTALL} clitkExtractLung)
29
30     WRAP_GGO(clitkExtractBones_GGO_C clitkExtractBones.ggo)
31     add_executable(clitkExtractBones clitkExtractBones.cxx ${clitkExtractBones_GGO_C})
32     target_link_libraries(clitkExtractBones clitkCommon clitkSegmentationGgoLib)
33     set(SEGMENTATION_INSTALL ${SEGMENTATION_INSTALL} clitkExtractBones)
34
35     WRAP_GGO(clitkMorphoMath_GGO_C clitkMorphoMath.ggo)
36     add_executable(clitkMorphoMath clitkMorphoMath.cxx ${clitkMorphoMath_GGO_C})
37     target_link_libraries(clitkMorphoMath clitkCommon)
38     set(SEGMENTATION_INSTALL ${SEGMENTATION_INSTALL} clitkMorphoMath)
39
40     WRAP_GGO(clitkDecomposeAndReconstruct_GGO_C clitkDecomposeAndReconstruct.ggo)
41     add_executable(clitkDecomposeAndReconstruct clitkDecomposeAndReconstruct.cxx clitkDecomposeAndReconstructGenericFilter.cxx ${clitkDecomposeAndReconstruct_GGO_C})
42     target_link_libraries(clitkDecomposeAndReconstruct clitkCommon)
43     set(SEGMENTATION_INSTALL ${SEGMENTATION_INSTALL} clitkDecomposeAndReconstruct)
44
45     WRAP_GGO(clitkMotionMask_GGO_C clitkMotionMask.ggo)
46     add_executable(clitkMotionMask clitkMotionMask.cxx clitkMotionMaskGenericFilter.cxx ${clitkMotionMask_GGO_C})
47     target_link_libraries(clitkMotionMask clitkCommon)
48     set(SEGMENTATION_INSTALL ${SEGMENTATION_INSTALL} clitkMotionMask)
49
50     WRAP_GGO(clitkRegionGrowing_GGO_C clitkRegionGrowing.ggo)
51     add_executable(clitkRegionGrowing clitkRegionGrowing.cxx ${clitkRegionGrowing_GGO_C} ${clitkRelativePosition_GGO_C})
52     target_link_libraries(clitkRegionGrowing clitkCommon)
53
54     install(TARGETS ${SEGMENTATION_INSTALL} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE)
55
56 endif(CLITK_BUILD_SEGMENTATION)
57
58 # add_executable(ScalarImageMarkovRandomField1 ScalarImageMarkovRandomField1.cxx)
59 # target_link_libraries(ScalarImageMarkovRandomField1 clitkCommon ITKStatistics)
60 # add_executable(ScalarImageKmeansClassifier ScalarImageKmeansClassifier.cxx)
61 # target_link_libraries(ScalarImageKmeansClassifier clitkCommon ITKStatistics)
62
63