]> Creatis software - clitk.git/blob - segmentation/CMakeLists.txt
a hopefully better option parser for vv
[clitk.git] / segmentation / CMakeLists.txt
1 #=========================================================
2
3 INCLUDE(${PROJECT_SOURCE_DIR}/cmake/common.cmake)
4
5 #=========================================================
6
7 #Add your ggo files to this list if they are used by vv
8 FOREACH(clitkTool clitkExtractLung clitkExtractPatient)
9     WRAP_GGO(${clitkTool}_GGO_C ${clitkTool}.ggo)
10     SET(GGO_C_FILES ${GGO_C_FILES} ${${clitkTool}_GGO_C})
11 ENDFOREACH(clitkTool)
12 ADD_LIBRARY(clitkSegmentationGgoLib ${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 ITKIO)
20
21     WRAP_GGO(clitkFillMask_GGO_C clitkFillMask.ggo)
22     ADD_EXECUTABLE(clitkFillMask clitkFillMask.cxx clitkFillMaskGenericFilter.cxx ${clitkFillMask_GGO_C})
23     TARGET_LINK_LIBRARIES(clitkFillMask clitkCommon ITKIO)
24
25     ADD_EXECUTABLE(clitkExtractPatient clitkExtractPatient.cxx ${clitkExtractPatient_GGO_C})
26     TARGET_LINK_LIBRARIES(clitkExtractPatient clitkCommon ITKIO)
27
28     ADD_EXECUTABLE(clitkExtractLung clitkExtractLung.cxx ${clitkExtractLung_GGO_C})
29     TARGET_LINK_LIBRARIES(clitkExtractLung clitkCommon ITKIO)
30
31     WRAP_GGO(clitkExtractAirwayTreeInfo_GGO_C clitkExtractAirwayTreeInfo.ggo)
32     ADD_EXECUTABLE(clitkExtractAirwayTreeInfo clitkExtractAirwayTreeInfo.cxx ${clitkExtractAirwayTreeInfo_GGO_C})
33     TARGET_LINK_LIBRARIES(clitkExtractAirwayTreeInfo clitkCommon ITKIO)
34
35     WRAP_GGO(clitkExtractBones_GGO_C clitkExtractBones.ggo)
36     ADD_EXECUTABLE(clitkExtractBones clitkExtractBones.cxx ${clitkExtractBones_GGO_C})
37     TARGET_LINK_LIBRARIES(clitkExtractBones clitkCommon ITKIO)
38
39     WRAP_GGO(clitkExtractMediastinum_GGO_C clitkExtractMediastinum.ggo)
40     ADD_EXECUTABLE(clitkExtractMediastinum clitkExtractMediastinum.cxx ${clitkExtractMediastinum_GGO_C})
41     TARGET_LINK_LIBRARIES(clitkExtractMediastinum clitkCommon ITKIO )
42
43     WRAP_GGO(clitkExtractLymphStations_GGO_C clitkExtractLymphStations.ggo)
44     ADD_EXECUTABLE(clitkExtractLymphStations clitkExtractLymphStations.cxx ${clitkExtractLymphStations_GGO_C})
45     TARGET_LINK_LIBRARIES(clitkExtractLymphStations clitkCommon ITKIO )
46
47     WRAP_GGO(clitkMorphoMath_GGO_C clitkMorphoMath.ggo)
48     ADD_EXECUTABLE(clitkMorphoMath clitkMorphoMath.cxx clitkMorphoMathGenericFilter.cxx ${clitkMorphoMath_GGO_C})
49     TARGET_LINK_LIBRARIES(clitkMorphoMath ITKIO clitkCommon)
50
51     WRAP_GGO(clitkMorphoReconstruction_GGO_C clitkMorphoReconstruction.ggo)
52     ADD_EXECUTABLE(clitkMorphoReconstruction clitkMorphoReconstruction.cxx clitkMorphoReconstructionGenericFilter.cxx ${clitkMorphoReconstruction_GGO_C})
53     TARGET_LINK_LIBRARIES(clitkMorphoReconstruction clitkCommon ITKIO )
54
55     WRAP_GGO(clitkCalculateDistanceMap_GGO_C clitkCalculateDistanceMap.ggo)
56     ADD_EXECUTABLE(clitkCalculateDistanceMap clitkCalculateDistanceMap.cxx clitkCalculateDistanceMapGenericFilter.cxx ${clitkCalculateDistanceMap_GGO_C})
57     TARGET_LINK_LIBRARIES(clitkCalculateDistanceMap clitkCommon ITKIO)
58
59     WRAP_GGO(clitkLevelSetSegmentation_GGO_C clitkLevelSetSegmentation.ggo)
60     ADD_EXECUTABLE(clitkLevelSetSegmentation clitkLevelSetSegmentation.cxx clitkLevelSetSegmentationGenericFilter.cxx ${clitkLevelSetSegmentation_GGO_C})
61     TARGET_LINK_LIBRARIES(clitkLevelSetSegmentation clitkCommon ITKIO)
62
63     WRAP_GGO(clitkAnd_GGO_C clitkAnd.ggo)
64     ADD_EXECUTABLE(clitkAnd clitkAnd.cxx clitkAndGenericFilter.cxx ${clitkAnd_GGO_C})
65     TARGET_LINK_LIBRARIES(clitkAnd clitkCommon ITKIO )
66
67     WRAP_GGO(clitkRegionGrowing_GGO_C clitkRegionGrowing.ggo)
68     ADD_EXECUTABLE(clitkRegionGrowing clitkRegionGrowing.cxx clitkRegionGrowingGenericFilter.cxx ${clitkRegionGrowing_GGO_C})
69     TARGET_LINK_LIBRARIES(clitkRegionGrowing clitkCommon ITKIO)
70
71     WRAP_GGO(clitkDecomposeAndReconstruct_GGO_C clitkDecomposeAndReconstruct.ggo)
72     ADD_EXECUTABLE(clitkDecomposeAndReconstruct clitkDecomposeAndReconstruct.cxx clitkDecomposeAndReconstructGenericFilter.cxx ${clitkDecomposeAndReconstruct_GGO_C})
73     TARGET_LINK_LIBRARIES(clitkDecomposeAndReconstruct clitkCommon ITKIO)
74
75     WRAP_GGO(clitkMotionMask_GGO_C clitkMotionMask.ggo)
76     ADD_EXECUTABLE(clitkMotionMask clitkMotionMask.cxx clitkMotionMaskGenericFilter.cxx ${clitkMotionMask_GGO_C})
77     TARGET_LINK_LIBRARIES(clitkMotionMask clitkCommon ITKIO ITKStatistics )
78
79     WRAP_GGO(clitkFillImageRegion_GGO_C clitkFillImageRegion.ggo)
80     ADD_EXECUTABLE(clitkFillImageRegion clitkFillImageRegion.cxx clitkFillImageRegionGenericFilter.cxx ${clitkFillImageRegion_GGO_C})
81     TARGET_LINK_LIBRARIES(clitkFillImageRegion clitkCommon ITKIO)
82 ENDIF(CLITK_BUILD_SEGMENTATION)