]> Creatis software - clitk.git/blob - segmentation/CMakeLists.txt
put queries in Factory
[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