1 #=========================================================
2 INCLUDE(${PROJECT_SOURCE_DIR}/cmake/common.cmake)
3 #=========================================================
5 # Add Libraries used in vv and clitk to avoid recompilation
6 WRAP_GGO(clitkCropImage_GGO_C clitkCropImage.ggo)
7 ADD_LIBRARY(clitkCropImageLib clitkCropImageGenericFilter.cxx ${clitkCropImage_GGO_C})
9 WRAP_GGO(clitkImageConvert_GGO_C clitkImageConvert.ggo)
10 ADD_LIBRARY(clitkImageConvertLib clitkImageConvertGenericFilter.cxx ${clitkImageConvert_GGO_C})
12 WRAP_GGO(clitkBinarizeImage_GGO_C clitkBinarizeImage.ggo)
13 ADD_LIBRARY(clitkBinarizeImageLib clitkBinarizeImageGenericFilter.cxx ${clitkBinarizeImage_GGO_C})
15 WRAP_GGO(clitkImageArithm_GGO_C clitkImageArithm.ggo)
16 ADD_LIBRARY(clitkImageArithmImageLib clitkImageArithmGenericFilter.cxx ${clitkImageArithm_GGO_C})
18 WRAP_GGO(clitkResampleImage_GGO_C clitkResampleImage.ggo)
19 ADD_LIBRARY(clitkResampleImageLib clitkResampleImageGenericFilter.cxx ${clitkResampleImage_GGO_C})
21 WRAP_GGO(clitkMIP_GGO_C clitkMIP.ggo)
22 ADD_LIBRARY(clitkMIPLib clitkMIPGenericFilter.cxx ${clitkMIP_GGO_C})
24 IF (CLITK_BUILD_TOOLS)
25 WRAP_GGO(clitkDicomInfo_GGO_C clitkDicomInfo.ggo)
26 ADD_EXECUTABLE(clitkDicomInfo clitkDicomInfo.cxx ${clitkDicomInfo_GGO_C})
27 TARGET_LINK_LIBRARIES(clitkDicomInfo clitkCommon ITKIO)
29 WRAP_GGO(clitkDicom2Image_GGO_C clitkDicom2Image.ggo)
30 ADD_EXECUTABLE(clitkDicom2Image clitkDicom2Image.cxx ${clitkDicom2Image_GGO_C})
31 TARGET_LINK_LIBRARIES(clitkDicom2Image clitkCommon ITKIO)
33 WRAP_GGO(clitkImageInfo_GGO_C clitkImageInfo.ggo)
34 ADD_EXECUTABLE(clitkImageInfo clitkImageInfo.cxx ${clitkImageInfo_GGO_C})
35 TARGET_LINK_LIBRARIES(clitkImageInfo clitkCommon ITKIO)
37 ADD_EXECUTABLE(clitkImageConvert clitkImageConvert.cxx)
38 TARGET_LINK_LIBRARIES(clitkImageConvert clitkImageConvertLib clitkCommon ITKIO)
40 ADD_EXECUTABLE(clitkBinarizeImage clitkBinarizeImage.cxx)
41 TARGET_LINK_LIBRARIES(clitkBinarizeImage clitkBinarizeImageLib clitkCommon ITKIO)
43 WRAP_GGO(clitkVFResample_GGO_C clitkVFResample.ggo)
44 ADD_EXECUTABLE(clitkVFResample clitkVFResample.cxx clitkVFResampleGenericFilter.cxx ${clitkVFResample_GGO_C})
45 TARGET_LINK_LIBRARIES(clitkVFResample clitkCommon ITKIO)
47 WRAP_GGO(clitkImageCreate_GGO_C clitkImageCreate.ggo)
48 ADD_EXECUTABLE(clitkImageCreate clitkImageCreate.cxx ${clitkImageCreate_GGO_C})
49 TARGET_LINK_LIBRARIES(clitkImageCreate clitkCommon ITKIO)
51 WRAP_GGO(clitkZeroVF_GGO_C clitkZeroVF.ggo)
52 ADD_EXECUTABLE(clitkZeroVF clitkZeroVF.cxx ${clitkZeroVF_GGO_C} clitkZeroVFGenericFilter.cxx)
53 TARGET_LINK_LIBRARIES(clitkZeroVF clitkCommon ITKIO)
55 WRAP_GGO(clitkImageExtractLine_GGO_C clitkImageExtractLine.ggo)
56 ADD_EXECUTABLE(clitkImageExtractLine clitkImageExtractLine.cxx ${clitkImageExtractLine_GGO_C})
57 TARGET_LINK_LIBRARIES(clitkImageExtractLine clitkCommon ITKIO)
59 WRAP_GGO(clitkSplitImage_GGO_C clitkSplitImage.ggo)
60 ADD_EXECUTABLE(clitkSplitImage clitkSplitImage.cxx clitkSplitImageGenericFilter.cxx ${clitkSplitImage_GGO_C})
61 TARGET_LINK_LIBRARIES(clitkSplitImage clitkCommon ITKIO )
63 WRAP_GGO(clitkVFMerge_GGO_C clitkVFMerge.ggo)
64 ADD_EXECUTABLE(clitkVFMerge clitkVFMerge.cxx ${clitkVFMerge_GGO_C})
65 TARGET_LINK_LIBRARIES(clitkVFMerge ITKBasicFilters clitkCommon ITKIO)
67 WRAP_GGO(clitkWriteDicomSeries_GGO_C clitkWriteDicomSeries.ggo)
68 ADD_EXECUTABLE(clitkWriteDicomSeries clitkWriteDicomSeries.cxx ${clitkWriteDicomSeries_GGO_C})
69 TARGET_LINK_LIBRARIES(clitkWriteDicomSeries clitkCommon ITKIO )
71 WRAP_GGO(clitkAverageTemporalDimension_GGO_C clitkAverageTemporalDimension.ggo)
72 ADD_EXECUTABLE(clitkAverageTemporalDimension clitkAverageTemporalDimension.cxx ${clitkAverageTemporalDimension_GGO_C})
73 TARGET_LINK_LIBRARIES(clitkAverageTemporalDimension clitkCommon ITKIO )
75 WRAP_GGO(clitkMedianTemporalDimension_GGO_C clitkMedianTemporalDimension.ggo)
76 ADD_EXECUTABLE(clitkMedianTemporalDimension clitkMedianTemporalDimension.cxx
77 ${clitkMedianTemporalDimension_GGO_C})
78 TARGET_LINK_LIBRARIES(clitkMedianTemporalDimension clitkCommon ITKIO )
80 WRAP_GGO(clitkWarpImage_GGO_C clitkWarpImage.ggo)
81 ADD_EXECUTABLE(clitkWarpImage clitkWarpImage.cxx ${clitkWarpImage_GGO_C} clitkWarpImageGenericFilter.cxx)
82 TARGET_LINK_LIBRARIES(clitkWarpImage ITKBasicFilters clitkCommon ITKIO)
84 WRAP_GGO(clitkInvertVF_GGO_C clitkInvertVF.ggo)
85 ADD_EXECUTABLE(clitkInvertVF clitkInvertVF.cxx ${clitkInvertVF_GGO_C})
86 TARGET_LINK_LIBRARIES(clitkInvertVF clitkCommon ITKIO )
88 WRAP_GGO(clitkAffineTransform_GGO_C clitkAffineTransform.ggo)
89 ADD_EXECUTABLE(clitkAffineTransform clitkAffineTransform.cxx ${clitkAffineTransform_GGO_C})
90 TARGET_LINK_LIBRARIES(clitkAffineTransform clitkCommon ITKIO )
92 WRAP_GGO(clitkSetBackground_GGO_C clitkSetBackground.ggo)
93 ADD_EXECUTABLE(clitkSetBackground clitkSetBackground.cxx clitkSetBackgroundGenericFilter.cxx ${clitkSetBackground_GGO_C})
94 TARGET_LINK_LIBRARIES(clitkSetBackground clitkCommon ITKIO)
96 WRAP_GGO(clitkGuerreroVentilation_GGO_C clitkGuerreroVentilation.ggo)
97 ADD_EXECUTABLE(clitkGuerreroVentilation clitkGuerreroVentilation.cxx clitkGuerreroVentilationGenericFilter.cxx ${clitkGuerreroVentilation_GGO_C})
98 TARGET_LINK_LIBRARIES(clitkGuerreroVentilation clitkCommon ITKIO)
100 WRAP_GGO(clitkGammaIndex_GGO_C clitkGammaIndex.ggo)
101 ADD_EXECUTABLE(clitkGammaIndex clitkGammaIndex.cxx ${clitkGammaIndex_GGO_C})
102 TARGET_LINK_LIBRARIES(clitkGammaIndex vtkCommon vtkFiltering vtkGraphics vtkIO vtkImaging)
104 ADD_EXECUTABLE(clitkImageArithm clitkImageArithm.cxx)
105 TARGET_LINK_LIBRARIES(clitkImageArithm clitkImageArithmImageLib clitkCommon ITKIO )
107 WRAP_GGO(clitkUnsharpMask_GGO_C clitkUnsharpMask.ggo)
108 ADD_EXECUTABLE(clitkUnsharpMask clitkUnsharpMask.cxx ${clitkUnsharpMask_GGO_C})
109 TARGET_LINK_LIBRARIES(clitkUnsharpMask clitkCommon ITKIO )
111 WRAP_GGO(clitkFooImage_GGO_C clitkFooImage.ggo)
112 ADD_EXECUTABLE(clitkFooImage clitkFooImage.cxx ${clitkFooImage_GGO_C})
113 TARGET_LINK_LIBRARIES(clitkFooImage clitkCommon ITKIO )
115 WRAP_GGO(clitkMedianImageFilter_GGO_C clitkMedianImageFilter.ggo)
116 ADD_EXECUTABLE(clitkMedianImageFilter clitkMedianImageFilter.cxx ${clitkMedianImageFilter_GGO_C})
117 TARGET_LINK_LIBRARIES(clitkMedianImageFilter clitkCommon ITKIO ITKBasicFilters )
119 ADD_EXECUTABLE(clitkResampleImage clitkResampleImage.cxx)
120 TARGET_LINK_LIBRARIES(clitkResampleImage clitkResampleImageLib clitkCommon ITKIO)
122 WRAP_GGO(clitkMinMaxMask_GGO_C clitkMinMaxMask.ggo)
123 ADD_EXECUTABLE(clitkMinMaxMask clitkMinMaxMask.cxx ${clitkMinMaxMask_GGO_C})
124 TARGET_LINK_LIBRARIES(clitkMinMaxMask clitkCommon ITKIO )
126 # WRAP_GGO(clitkAutoCrop_GGO_C clitkAutoCrop.ggo)
127 # ADD_EXECUTABLE(clitkAutoCrop clitkAutoCrop.cxx ${clitkAutoCrop_GGO_C})
128 # TARGET_LINK_LIBRARIES(clitkAutoCrop clitkCommon ITKIO )
130 WRAP_GGO(clitkDicomRTStruct2BinaryImage_GGO_C clitkDicomRTStruct2BinaryImage.ggo)
131 ADD_EXECUTABLE(clitkDicomRTStruct2BinaryImage clitkDicomRTStruct2BinaryImage.cxx ${clitkDicomRTStruct2BinaryImage_GGO_C})
132 TARGET_LINK_LIBRARIES(clitkDicomRTStruct2BinaryImage ITKCommon clitkDicomRTStruct clitkCommon ITKIO )
134 WRAP_GGO(clitkImageLog_GGO_C clitkImageLog.ggo)
135 ADD_EXECUTABLE(clitkImageLog clitkImageLog.cxx ${clitkImageLog_GGO_C})
136 TARGET_LINK_LIBRARIES(clitkImageLog ITKIO clitkCommon)
138 WRAP_GGO(clitkFilter_GGO_C clitkFilter.ggo)
139 ADD_EXECUTABLE(clitkFilter clitkFilter.cxx clitkFilterGenericFilter.cxx ${clitkFilter_GGO_C})
140 TARGET_LINK_LIBRARIES(clitkFilter ITKIO clitkCommon)
142 WRAP_GGO(clitkConeBeamProjectImage_GGO_C clitkConeBeamProjectImage.ggo)
143 ADD_EXECUTABLE(clitkConeBeamProjectImage clitkConeBeamProjectImage.cxx clitkConeBeamProjectImageGenericFilter.cxx ${clitkConeBeamProjectImage_GGO_C})
144 TARGET_LINK_LIBRARIES(clitkConeBeamProjectImage ITKIO clitkCommon )
146 WRAP_GGO(clitkComposeVF_GGO_C clitkComposeVF.ggo)
147 ADD_EXECUTABLE(clitkComposeVF clitkComposeVFGenericFilter.cxx clitkComposeVF.cxx ${clitkComposeVF_GGO_C})
148 TARGET_LINK_LIBRARIES(clitkComposeVF ITKBasicFilters ITKIO clitkCommon)
150 WRAP_GGO(clitkMergeSequence_GGO_C clitkMergeSequence.ggo)
151 ADD_EXECUTABLE(clitkMergeSequence clitkMergeSequence.cxx clitkMergeSequenceGenericFilter.cxx ${clitkMergeSequence_GGO_C})
152 TARGET_LINK_LIBRARIES(clitkMergeSequence ITKIO clitkCommon)
154 WRAP_GGO(clitkBackProjectImage_GGO_C clitkBackProjectImage.ggo)
155 ADD_EXECUTABLE(clitkBackProjectImage clitkBackProjectImage.cxx clitkBackProjectImageGenericFilter.cxx ${clitkBackProjectImage_GGO_C})
156 TARGET_LINK_LIBRARIES(clitkBackProjectImage ITKIO clitkCommon )
158 ADD_EXECUTABLE(clitkCropImage clitkCropImage.cxx ${clitkCropImage_GGO_C})
159 TARGET_LINK_LIBRARIES(clitkCropImage clitkCropImageLib clitkCommon ITKIO)
161 # WRAP_GGO(clitkExtractSlice_GGO_C clitkExtractSlice.ggo)
162 # ADD_EXECUTABLE(clitkExtractSlice clitkExtractSlice.cxx clitkExtractSliceGenericFilter.cxx ${clitkExtractSlice_GGO_C})
163 # TARGET_LINK_LIBRARIES(clitkExtractSlice clitkCommon ITKIO)
165 WRAP_GGO(clitkFlipImage_GGO_C clitkFlipImage.ggo)
166 ADD_EXECUTABLE(clitkFlipImage clitkFlipImage.cxx clitkFlipImageGenericFilter.cxx ${clitkFlipImage_GGO_C})
167 TARGET_LINK_LIBRARIES(clitkFlipImage clitkCommon ITKIO)
169 WRAP_GGO(clitkMirrorPadImage_GGO_C clitkMirrorPadImage.ggo)
170 ADD_EXECUTABLE(clitkMirrorPadImage clitkMirrorPadImage.cxx clitkMirrorPadImageGenericFilter.cxx ${clitkMirrorPadImage_GGO_C})
171 TARGET_LINK_LIBRARIES(clitkMirrorPadImage clitkCommon ITKIO)
173 WRAP_GGO(clitkImageMoment_GGO_C clitkImageMoment.ggo)
174 ADD_EXECUTABLE(clitkImageMoment clitkImageMoment.cxx clitkImageMomentGenericFilter.cxx ${clitkImageMoment_GGO_C})
175 TARGET_LINK_LIBRARIES(clitkImageMoment clitkCommon ITKIO)
177 WRAP_GGO(clitkImageStatistics_GGO_C clitkImageStatistics.ggo)
178 ADD_EXECUTABLE(clitkImageStatistics clitkImageStatistics.cxx clitkImageStatisticsGenericFilter.cxx ${clitkImageStatistics_GGO_C})
179 TARGET_LINK_LIBRARIES(clitkImageStatistics clitkCommon ITKIO ITKStatistics)
181 WRAP_GGO(clitkSetOrigin_GGO_C clitkSetOrigin.ggo)
182 ADD_EXECUTABLE(clitkSetOrigin clitkSetOrigin.cxx clitkSetOriginGenericFilter.cxx ${clitkSetOrigin_GGO_C})
183 TARGET_LINK_LIBRARIES(clitkSetOrigin clitkCommon ITKIO )
185 WRAP_GGO(clitkGetOrigin_GGO_C clitkGetOrigin.ggo)
186 ADD_EXECUTABLE(clitkGetOrigin clitkGetOrigin.cxx clitkGetOriginGenericFilter.cxx ${clitkGetOrigin_GGO_C})
187 TARGET_LINK_LIBRARIES(clitkGetOrigin clitkCommon ITKIO )
189 WRAP_GGO(clitkGetDirection_GGO_C clitkGetDirection.ggo)
190 ADD_EXECUTABLE(clitkGetDirection clitkGetDirection.cxx clitkGetDirectionGenericFilter.cxx ${clitkGetDirection_GGO_C})
191 TARGET_LINK_LIBRARIES(clitkGetDirection clitkCommon ITKIO)
193 WRAP_GGO(clitkSetDirection_GGO_C clitkSetDirection.ggo)
194 ADD_EXECUTABLE(clitkSetDirection clitkSetDirection.cxx clitkSetDirectionGenericFilter.cxx ${clitkSetDirection_GGO_C})
195 TARGET_LINK_LIBRARIES(clitkSetDirection clitkCommon ITKIO)
197 WRAP_GGO(clitkGetSize_GGO_C clitkGetSize.ggo)
198 ADD_EXECUTABLE(clitkGetSize clitkGetSize.cxx clitkGetSizeGenericFilter.cxx ${clitkGetSize_GGO_C})
199 TARGET_LINK_LIBRARIES(clitkGetSize clitkCommon ITKIO)
201 WRAP_GGO(clitkGetSpacing_GGO_C clitkGetSpacing.ggo)
202 ADD_EXECUTABLE(clitkGetSpacing clitkGetSpacing.cxx clitkGetSpacingGenericFilter.cxx ${clitkGetSpacing_GGO_C})
203 TARGET_LINK_LIBRARIES(clitkGetSpacing clitkCommon ITKIO)
205 WRAP_GGO(clitkSetSpacing_GGO_C clitkSetSpacing.ggo)
206 ADD_EXECUTABLE(clitkSetSpacing clitkSetSpacing.cxx clitkSetSpacingGenericFilter.cxx ${clitkSetSpacing_GGO_C})
207 TARGET_LINK_LIBRARIES(clitkSetSpacing clitkCommon ITKIO)
209 WRAP_GGO(clitkCombineImage_GGO_C clitkCombineImage.ggo)
210 ADD_EXECUTABLE(clitkCombineImage clitkCombineImage.cxx clitkCombineImageGenericFilter.cxx ${clitkCombineImage_GGO_C})
211 TARGET_LINK_LIBRARIES(clitkCombineImage clitkCommon ITKIO)
213 WRAP_GGO(clitkPermuteAxes_GGO_C clitkPermuteAxes.ggo)
214 ADD_EXECUTABLE(clitkPermuteAxes clitkPermuteAxes.cxx clitkPermuteAxesGenericFilter.cxx ${clitkPermuteAxes_GGO_C})
215 TARGET_LINK_LIBRARIES(clitkPermuteAxes clitkCommon ITKIO)
217 WRAP_GGO(clitkChangeImageOrientation_GGO_C clitkChangeImageOrientation.ggo)
218 ADD_EXECUTABLE(clitkChangeImageOrientation clitkChangeImageOrientation.cxx clitkChangeImageOrientationGenericFilter.cxx ${clitkChangeImageOrientation_GGO_C})
219 TARGET_LINK_LIBRARIES(clitkChangeImageOrientation clitkCommon ITKIO)
221 WRAP_GGO(clitkVFConvert_GGO_C clitkVFConvert.ggo)
222 ADD_EXECUTABLE(clitkVFConvert clitkVFConvert.cxx clitkVFConvertGenericFilter.cxx ${clitkVFConvert_GGO_C})
223 TARGET_LINK_LIBRARIES(clitkVFConvert ITKBasicFilters ITKIO clitkCommon )
225 WRAP_GGO(clitkImageToVectorImage_GGO_C clitkImageToVectorImage.ggo)
226 ADD_EXECUTABLE(clitkImageToVectorImage clitkImageToVectorImage.cxx clitkImageToVectorImageGenericFilter.cxx ${clitkImageToVectorImage_GGO_C})
227 TARGET_LINK_LIBRARIES(clitkImageToVectorImage clitkCommon ITKIO)
229 WRAP_GGO(clitkVectorImageToImage_GGO_C clitkVectorImageToImage.ggo)
230 ADD_EXECUTABLE(clitkVectorImageToImage clitkVectorImageToImage.cxx clitkVectorImageToImageGenericFilter.cxx ${clitkVectorImageToImage_GGO_C})
231 TARGET_LINK_LIBRARIES(clitkVectorImageToImage clitkCommon ITKIO)
233 WRAP_GGO(clitkBSplineCoefficientsToValues_GGO_C clitkBSplineCoefficientsToValues.ggo)
234 ADD_EXECUTABLE(clitkBSplineCoefficientsToValues clitkBSplineCoefficientsToValues.cxx clitkBSplineCoefficientsToValuesGenericFilter.cxx ${clitkBSplineCoefficientsToValues_GGO_C})
235 TARGET_LINK_LIBRARIES(clitkBSplineCoefficientsToValues clitkCommon ITKIO)
237 WRAP_GGO(clitkValuesToBSplineCoefficients_GGO_C clitkValuesToBSplineCoefficients.ggo)
238 ADD_EXECUTABLE(clitkValuesToBSplineCoefficients clitkValuesToBSplineCoefficients.cxx clitkValuesToBSplineCoefficientsGenericFilter.cxx ${clitkValuesToBSplineCoefficients_GGO_C})
239 TARGET_LINK_LIBRARIES(clitkValuesToBSplineCoefficients clitkCommon ITKIO)
241 ADD_EXECUTABLE(clitkMIP clitkMIP.cxx clitkMIPGenericFilter.cxx)
242 TARGET_LINK_LIBRARIES(clitkMIP clitkMIPLib clitkCommon ITKIO)
244 WRAP_GGO(clitkRelativePosition_GGO_C clitkRelativePosition.ggo)
245 ADD_EXECUTABLE(clitkRelativePosition clitkRelativePosition.cxx ${clitkRelativePosition_GGO_C})
246 TARGET_LINK_LIBRARIES(clitkRelativePosition clitkCommon ITKIO)
248 WRAP_GGO(clitkTransformLandmarks_GGO_C clitkTransformLandmarks.ggo)
249 ADD_EXECUTABLE(clitkTransformLandmarks clitkTransformLandmarks.cxx ${clitkTransformLandmarks_GGO_C})
250 TARGET_LINK_LIBRARIES(clitkTransformLandmarks clitkCommon ITKIO)
252 WRAP_GGO(clitkLineProfile_GGO_C clitkLineProfile.ggo)
253 ADD_EXECUTABLE(clitkLineProfile clitkLineProfile.cxx clitkLineProfileGenericFilter.cxx ${clitkLineProfile_GGO_C})
254 TARGET_LINK_LIBRARIES(clitkLineProfile clitkCommon ITKIO)
256 ENDIF(CLITK_BUILD_TOOLS)