1 #=========================================================
2 # Add Libraries used in vv and clitk to avoid recompilation
3 WRAP_GGO(clitkCropImage_GGO_C clitkCropImage.ggo)
4 ADD_LIBRARY(clitkCropImageLib clitkCropImageGenericFilter.cxx ${clitkCropImage_GGO_C})
6 WRAP_GGO(clitkImageConvert_GGO_C clitkImageConvert.ggo)
7 ADD_LIBRARY(clitkImageConvertLib clitkImageConvertGenericFilter.cxx ${clitkImageConvert_GGO_C})
9 WRAP_GGO(clitkBinarizeImage_GGO_C clitkBinarizeImage.ggo)
10 ADD_LIBRARY(clitkBinarizeImageLib clitkBinarizeImageGenericFilter.cxx ${clitkBinarizeImage_GGO_C})
12 WRAP_GGO(clitkImageArithm_GGO_C clitkImageArithm.ggo)
13 ADD_LIBRARY(clitkImageArithmImageLib clitkImageArithmGenericFilter.cxx ${clitkImageArithm_GGO_C})
15 WRAP_GGO(clitkVectorArithm_GGO_C clitkVectorArithm.ggo)
16 ADD_LIBRARY(clitkVectorArithmLib clitkVectorArithmGenericFilter.cxx ${clitkVectorArithm_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 WRAP_GGO(clitkMedianImageFilter_GGO_C clitkMedianImageFilter.ggo)
25 ADD_LIBRARY(clitkMedianImageFilterLib clitkMedianImageGenericFilter.cxx ${clitkMedianImageFilter_GGO_C})
27 #=========================================================
28 IF (CLITK_BUILD_TOOLS)
30 WRAP_GGO(clitkDicomInfo_GGO_C clitkDicomInfo.ggo)
31 ADD_EXECUTABLE(clitkDicomInfo clitkDicomInfo.cxx ${clitkDicomInfo_GGO_C})
32 TARGET_LINK_LIBRARIES(clitkDicomInfo clitkCommon)
33 # set_target_properties(clitkDicomInfo
35 # LINK_INTERFACE_LIBRARIES ""
37 SET(TOOLS_INSTALL clitkDicomInfo)
39 WRAP_GGO(clitkDicom2Image_GGO_C clitkDicom2Image.ggo)
40 ADD_EXECUTABLE(clitkDicom2Image clitkDicom2Image.cxx ${clitkDicom2Image_GGO_C})
41 TARGET_LINK_LIBRARIES(clitkDicom2Image clitkCommon)
42 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicom2Image)
44 WRAP_GGO(clitkDicomWave2Text_GGO_C clitkDicomWave2Text.ggo)
45 ADD_EXECUTABLE(clitkDicomWave2Text clitkDicomWave2Text.cxx ${clitkDicomWave2Text_GGO_C})
46 TARGET_LINK_LIBRARIES(clitkDicomWave2Text clitkCommon)
47 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomWave2Text)
49 WRAP_GGO(clitkImageInfo_GGO_C clitkImageInfo.ggo)
50 ADD_EXECUTABLE(clitkImageInfo clitkImageInfo.cxx ${clitkImageInfo_GGO_C})
51 TARGET_LINK_LIBRARIES(clitkImageInfo clitkCommon)
52 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageInfo)
54 ADD_EXECUTABLE(clitkImageConvert clitkImageConvert.cxx)
55 TARGET_LINK_LIBRARIES(clitkImageConvert clitkImageConvertLib clitkCommon)
56 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageConvert)
58 ADD_EXECUTABLE(clitkBinarizeImage clitkBinarizeImage.cxx)
59 TARGET_LINK_LIBRARIES(clitkBinarizeImage clitkBinarizeImageLib clitkCommon)
60 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBinarizeImage)
62 WRAP_GGO(clitkVFResample_GGO_C clitkVFResample.ggo)
63 ADD_EXECUTABLE(clitkVFResample clitkVFResample.cxx clitkVFResampleGenericFilter.cxx ${clitkVFResample_GGO_C})
64 TARGET_LINK_LIBRARIES(clitkVFResample clitkCommon)
65 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVFResample)
67 WRAP_GGO(clitkVFInterpolate_GGO_C clitkVFInterpolate.ggo)
68 ADD_EXECUTABLE(clitkVFInterpolate clitkVFInterpolate.cxx clitkVFInterpolateGenericFilter.cxx ${clitkVFInterpolate_GGO_C})
69 TARGET_LINK_LIBRARIES(clitkVFInterpolate clitkCommon)
70 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVFInterpolate)
72 WRAP_GGO(clitkImageCreate_GGO_C clitkImageCreate.ggo)
73 ADD_EXECUTABLE(clitkImageCreate clitkImageCreate.cxx ${clitkImageCreate_GGO_C})
74 TARGET_LINK_LIBRARIES(clitkImageCreate clitkCommon)
75 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageCreate)
77 WRAP_GGO(clitkZeroVF_GGO_C clitkZeroVF.ggo)
78 ADD_EXECUTABLE(clitkZeroVF clitkZeroVF.cxx ${clitkZeroVF_GGO_C} clitkZeroVFGenericFilter.cxx)
79 TARGET_LINK_LIBRARIES(clitkZeroVF clitkCommon)
80 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkZeroVF)
82 WRAP_GGO(clitkSplitImage_GGO_C clitkSplitImage.ggo)
83 ADD_EXECUTABLE(clitkSplitImage clitkSplitImage.cxx clitkSplitImageGenericFilter.cxx ${clitkSplitImage_GGO_C})
84 TARGET_LINK_LIBRARIES(clitkSplitImage clitkCommon )
85 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSplitImage)
87 WRAP_GGO(clitkWriteDicomSeries_GGO_C clitkWriteDicomSeries.ggo)
88 ADD_EXECUTABLE(clitkWriteDicomSeries clitkWriteDicomSeries.cxx ${clitkWriteDicomSeries_GGO_C})
89 TARGET_LINK_LIBRARIES(clitkWriteDicomSeries clitkCommon )
90 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkWriteDicomSeries)
92 WRAP_GGO(clitkMedianTemporalDimension_GGO_C clitkMedianTemporalDimension.ggo)
93 ADD_EXECUTABLE(clitkMedianTemporalDimension clitkMedianTemporalDimension.cxx
94 ${clitkMedianTemporalDimension_GGO_C})
95 TARGET_LINK_LIBRARIES(clitkMedianTemporalDimension clitkCommon )
96 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMedianTemporalDimension)
98 WRAP_GGO(clitkWarpImage_GGO_C clitkWarpImage.ggo)
99 ADD_EXECUTABLE(clitkWarpImage clitkWarpImage.cxx ${clitkWarpImage_GGO_C} clitkWarpImageGenericFilter.cxx)
100 TARGET_LINK_LIBRARIES(clitkWarpImage clitkCommon)
101 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkWarpImage)
103 WRAP_GGO(clitkInvertVF_GGO_C clitkInvertVF.ggo)
104 ADD_EXECUTABLE(clitkInvertVF clitkInvertVF.cxx ${clitkInvertVF_GGO_C})
105 TARGET_LINK_LIBRARIES(clitkInvertVF clitkCommon)
106 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkInvertVF)
108 WRAP_GGO(clitkAffineTransform_GGO_C clitkAffineTransform.ggo)
109 ADD_EXECUTABLE(clitkAffineTransform clitkAffineTransform.cxx ${clitkAffineTransform_GGO_C})
110 TARGET_LINK_LIBRARIES(clitkAffineTransform clitkCommon )
111 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAffineTransform)
113 WRAP_GGO(clitkElastixTransformToMatrix_GGO_C clitkElastixTransformToMatrix.ggo)
114 ADD_EXECUTABLE(clitkElastixTransformToMatrix clitkElastixTransformToMatrix.cxx ${clitkElastixTransformToMatrix_GGO_C})
115 TARGET_LINK_LIBRARIES(clitkElastixTransformToMatrix clitkCommon )
116 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkElastixTransformToMatrix)
118 WRAP_GGO(clitkMatrixToElastixTransform_GGO_C clitkMatrixToElastixTransform.ggo)
119 ADD_EXECUTABLE(clitkMatrixToElastixTransform clitkMatrixToElastixTransform.cxx ${clitkMatrixToElastixTransform_GGO_C})
120 TARGET_LINK_LIBRARIES(clitkMatrixToElastixTransform clitkCommon )
121 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMatrixToElastixTransform)
123 WRAP_GGO(clitkMatrixMultiply_GGO_C clitkMatrixMultiply.ggo)
124 ADD_EXECUTABLE(clitkMatrixMultiply clitkMatrixMultiply.cxx ${clitkMatrixMultiply_GGO_C})
125 TARGET_LINK_LIBRARIES(clitkMatrixMultiply clitkCommon )
126 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMatrixMultiply)
128 WRAP_GGO(clitkMatrixInverse_GGO_C clitkMatrixInverse.ggo)
129 ADD_EXECUTABLE(clitkMatrixInverse clitkMatrixInverse.cxx ${clitkMatrixInverse_GGO_C})
130 TARGET_LINK_LIBRARIES(clitkMatrixInverse clitkCommon )
131 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMatrixInverse)
133 WRAP_GGO(clitkSetBackground_GGO_C clitkSetBackground.ggo)
134 ADD_EXECUTABLE(clitkSetBackground clitkSetBackground.cxx clitkSetBackgroundGenericFilter.cxx ${clitkSetBackground_GGO_C})
135 TARGET_LINK_LIBRARIES(clitkSetBackground clitkCommon)
136 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSetBackground)
138 WRAP_GGO(clitkGammaIndex_GGO_C clitkGammaIndex.ggo)
139 ADD_EXECUTABLE(clitkGammaIndex clitkGammaIndex.cxx ${clitkGammaIndex_GGO_C})
140 TARGET_LINK_LIBRARIES(clitkGammaIndex clitkCommon)
141 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGammaIndex)
143 ADD_EXECUTABLE(clitkImageArithm clitkImageArithm.cxx)
144 TARGET_LINK_LIBRARIES(clitkImageArithm clitkImageArithmImageLib clitkCommon )
145 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageArithm)
147 ADD_EXECUTABLE(clitkVectorArithm clitkVectorArithm.cxx)
148 TARGET_LINK_LIBRARIES(clitkVectorArithm clitkVectorArithmLib clitkCommon )
149 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVectorArithm)
151 WRAP_GGO(clitkUnsharpMask_GGO_C clitkUnsharpMask.ggo)
152 ADD_EXECUTABLE(clitkUnsharpMask clitkUnsharpMask.cxx ${clitkUnsharpMask_GGO_C})
153 TARGET_LINK_LIBRARIES(clitkUnsharpMask clitkCommon )
154 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkUnsharpMask)
156 WRAP_GGO(clitkFooImage_GGO_C clitkFooImage.ggo)
157 ADD_EXECUTABLE(clitkFooImage clitkFooImage.cxx ${clitkFooImage_GGO_C})
158 TARGET_LINK_LIBRARIES(clitkFooImage clitkCommon )
159 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkFooImage)
161 WRAP_GGO(clitkMedianImageFilter_GGO_C clitkMedianImageFilter.ggo)
162 ADD_EXECUTABLE(clitkMedianImageFilter clitkMedianImageFilter.cxx ${clitkMedianImageFilter_GGO_C})
163 TARGET_LINK_LIBRARIES(clitkMedianImageFilter clitkMedianImageFilterLib clitkCommon)
164 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMedianImageFilter)
166 ADD_EXECUTABLE(clitkResampleImage clitkResampleImage.cxx)
167 TARGET_LINK_LIBRARIES(clitkResampleImage clitkResampleImageLib clitkCommon)
168 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkResampleImage)
170 WRAP_GGO(clitkMinMaxMask_GGO_C clitkMinMaxMask.ggo)
171 ADD_EXECUTABLE(clitkMinMaxMask clitkMinMaxMask.cxx ${clitkMinMaxMask_GGO_C})
172 TARGET_LINK_LIBRARIES(clitkMinMaxMask clitkCommon )
173 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMinMaxMask)
175 WRAP_GGO(clitkAutoCrop_GGO_C clitkAutoCrop.ggo)
176 ADD_EXECUTABLE(clitkAutoCrop clitkAutoCrop.cxx ${clitkAutoCrop_GGO_C})
177 TARGET_LINK_LIBRARIES(clitkAutoCrop clitkCommon )
178 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAutoCrop)
180 WRAP_GGO(clitkDicomRTStruct2Image_GGO_C clitkDicomRTStruct2Image.ggo)
181 ADD_EXECUTABLE(clitkDicomRTStruct2Image clitkDicomRTStruct2Image.cxx ${clitkDicomRTStruct2Image_GGO_C})
182 TARGET_LINK_LIBRARIES(clitkDicomRTStruct2Image clitkDicomRTStruct)
183 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomRTStruct2Image)
185 IF(CLITK_USE_SYSTEM_GDCM)
186 WRAP_GGO(clitkImage2DicomRTStruct_GGO_C clitkImage2DicomRTStruct.ggo)
187 ADD_EXECUTABLE(clitkImage2DicomRTStruct clitkImage2DicomRTStruct.cxx ${clitkImage2DicomRTStruct_GGO_C})
188 TARGET_LINK_LIBRARIES(clitkImage2DicomRTStruct clitkDicomRTStruct)
191 WRAP_GGO(clitkComposeVF_GGO_C clitkComposeVF.ggo)
192 ADD_EXECUTABLE(clitkComposeVF clitkComposeVFGenericFilter.cxx clitkComposeVF.cxx ${clitkComposeVF_GGO_C})
193 TARGET_LINK_LIBRARIES(clitkComposeVF clitkCommon )
194 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkComposeVF)
196 WRAP_GGO(clitkMergeSequence_GGO_C clitkMergeSequence.ggo)
197 ADD_EXECUTABLE(clitkMergeSequence clitkMergeSequence.cxx clitkMergeSequenceGenericFilter.cxx ${clitkMergeSequence_GGO_C})
198 TARGET_LINK_LIBRARIES(clitkMergeSequence clitkCommon)
199 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMergeSequence)
201 WRAP_GGO(clitkBackProjectImage_GGO_C clitkBackProjectImage.ggo)
202 ADD_EXECUTABLE(clitkBackProjectImage clitkBackProjectImage.cxx clitkBackProjectImageGenericFilter.cxx ${clitkBackProjectImage_GGO_C})
203 TARGET_LINK_LIBRARIES(clitkBackProjectImage clitkCommon)
204 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBackProjectImage)
206 ADD_EXECUTABLE(clitkCropImage clitkCropImage.cxx ${clitkCropImage_GGO_C})
207 TARGET_LINK_LIBRARIES(clitkCropImage clitkCropImageLib clitkCommon)
208 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkCropImage)
210 # WRAP_GGO(clitkExtractSlice_GGO_C clitkExtractSlice.ggo)
211 # ADD_EXECUTABLE(clitkExtractSlice clitkExtractSlice.cxx clitkExtractSliceGenericFilter.cxx ${clitkExtractSlice_GGO_C})
212 # TARGET_LINK_LIBRARIES(clitkExtractSlice clitkCommon)
213 #SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkExtractSlice)
215 WRAP_GGO(clitkFlipImage_GGO_C clitkFlipImage.ggo)
216 ADD_EXECUTABLE(clitkFlipImage clitkFlipImage.cxx clitkFlipImageGenericFilter.cxx ${clitkFlipImage_GGO_C})
217 TARGET_LINK_LIBRARIES(clitkFlipImage clitkCommon)
218 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkFlipImage)
220 WRAP_GGO(clitkMirrorPadImage_GGO_C clitkMirrorPadImage.ggo)
221 ADD_EXECUTABLE(clitkMirrorPadImage clitkMirrorPadImage.cxx clitkMirrorPadImageGenericFilter.cxx ${clitkMirrorPadImage_GGO_C})
222 TARGET_LINK_LIBRARIES(clitkMirrorPadImage clitkCommon)
223 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMirrorPadImage)
225 WRAP_GGO(clitkImageMoment_GGO_C clitkImageMoment.ggo)
226 ADD_EXECUTABLE(clitkImageMoment clitkImageMoment.cxx clitkImageMomentGenericFilter.cxx ${clitkImageMoment_GGO_C})
227 TARGET_LINK_LIBRARIES(clitkImageMoment clitkCommon)
228 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageMoment)
230 WRAP_GGO(clitkImageStatistics_GGO_C clitkImageStatistics.ggo)
231 ADD_EXECUTABLE(clitkImageStatistics clitkImageStatistics.cxx clitkImageStatisticsGenericFilter.cxx ${clitkImageStatistics_GGO_C})
232 TARGET_LINK_LIBRARIES(clitkImageStatistics clitkCommon)
233 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageStatistics)
235 WRAP_GGO(clitkVFConvert_GGO_C clitkVFConvert.ggo)
236 ADD_EXECUTABLE(clitkVFConvert clitkVFConvert.cxx clitkVFConvertGenericFilter.cxx ${clitkVFConvert_GGO_C})
237 TARGET_LINK_LIBRARIES(clitkVFConvert clitkCommon )
238 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVFConvert)
240 WRAP_GGO(clitkImageToVectorImage_GGO_C clitkImageToVectorImage.ggo)
241 ADD_EXECUTABLE(clitkImageToVectorImage clitkImageToVectorImage.cxx clitkImageToVectorImageGenericFilter.cxx ${clitkImageToVectorImage_GGO_C})
242 TARGET_LINK_LIBRARIES(clitkImageToVectorImage clitkCommon)
243 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageToVectorImage)
245 WRAP_GGO(clitkVectorImageToImage_GGO_C clitkVectorImageToImage.ggo)
246 ADD_EXECUTABLE(clitkVectorImageToImage clitkVectorImageToImage.cxx clitkVectorImageToImageGenericFilter.cxx ${clitkVectorImageToImage_GGO_C})
247 TARGET_LINK_LIBRARIES(clitkVectorImageToImage clitkCommon)
248 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVectorImageToImage)
250 ADD_EXECUTABLE(clitkMIP clitkMIP.cxx clitkMIPGenericFilter.cxx)
251 TARGET_LINK_LIBRARIES(clitkMIP clitkMIPLib clitkCommon)
252 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMIP)
254 WRAP_GGO(clitkTransformLandmarks_GGO_C clitkTransformLandmarks.ggo)
255 ADD_EXECUTABLE(clitkTransformLandmarks clitkTransformLandmarks.cxx ${clitkTransformLandmarks_GGO_C})
256 TARGET_LINK_LIBRARIES(clitkTransformLandmarks clitkCommon)
257 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkTransformLandmarks)
259 WRAP_GGO(clitkMaskLandmarks_GGO_C clitkMaskLandmarks.ggo)
260 ADD_EXECUTABLE(clitkMaskLandmarks clitkMaskLandmarks.cxx ${clitkMaskLandmarks_GGO_C})
261 TARGET_LINK_LIBRARIES(clitkMaskLandmarks clitkCommon)
262 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMaskLandmarks)
264 WRAP_GGO(clitkJacobianImage_GGO_C clitkJacobianImage.ggo)
265 ADD_EXECUTABLE(clitkJacobianImage clitkJacobianImage.cxx clitkJacobianImageGenericFilter.cxx ${clitkJacobianImage_GGO_C})
266 TARGET_LINK_LIBRARIES(clitkJacobianImage clitkCommon)
267 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkJacobianImage)
269 WRAP_GGO(clitkPadImage_GGO_C clitkPadImage.ggo)
270 ADD_EXECUTABLE(clitkPadImage clitkPadImage.cxx clitkPadImageGenericFilter.cxx ${clitkPadImage_GGO_C})
271 TARGET_LINK_LIBRARIES(clitkPadImage clitkCommon)
272 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkPadImage)
274 WRAP_GGO(clitkCatImage_GGO_C clitkCatImage.ggo)
275 ADD_EXECUTABLE(clitkCatImage clitkCatImage.cxx ${clitkCatImage_GGO_C})
276 TARGET_LINK_LIBRARIES(clitkCatImage clitkCommon)
277 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkCatImage)
279 WRAP_GGO(clitkAnisotropicDiffusion_GGO_C clitkAnisotropicDiffusion.ggo)
280 ADD_EXECUTABLE(clitkAnisotropicDiffusion clitkAnisotropicDiffusion.cxx
281 clitkAnisotropicDiffusionGenericFilter.cxx
282 ${clitkAnisotropicDiffusion_GGO_C})
283 TARGET_LINK_LIBRARIES(clitkAnisotropicDiffusion clitkCommon)
284 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAnisotropicDiffusion)
286 WRAP_GGO(clitkChangeImageInfo_GGO_C clitkChangeImageInfo.ggo)
287 ADD_EXECUTABLE(clitkChangeImageInfo clitkChangeImageInfo.cxx
288 clitkChangeImageInfoGenericFilter.cxx
289 ${clitkChangeImageInfo_GGO_C})
290 TARGET_LINK_LIBRARIES(clitkChangeImageInfo clitkCommon)
291 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkChangeImageInfo)
293 WRAP_GGO(clitkMergeAsciiDoseActor_GGO_C clitkMergeAsciiDoseActor.ggo)
294 ADD_EXECUTABLE(clitkMergeAsciiDoseActor clitkMergeAsciiDoseActor.cxx ${clitkMergeAsciiDoseActor_GGO_C})
295 TARGET_LINK_LIBRARIES(clitkMergeAsciiDoseActor ITKCommon clitkCommon)
296 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMergeAsciiDoseActor)
298 WRAP_GGO(clitkImageUncertainty_GGO_C clitkImageUncertainty.ggo)
299 ADD_EXECUTABLE(clitkImageUncertainty clitkImageUncertainty.cxx clitkImageUncertainty_ggo.c)
300 TARGET_LINK_LIBRARIES(clitkImageUncertainty clitkCommon ${ITK_LIBRARIES})
301 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageUncertainty)
303 WRAP_GGO(clitkNormalizeImageFilter_GGO_C clitkNormalizeImageFilter.ggo)
304 ADD_EXECUTABLE(clitkNormalizeImageFilter clitkNormalizeImageFilter.cxx ${clitkNormalizeImageFilter_GGO_C})
305 TARGET_LINK_LIBRARIES(clitkNormalizeImageFilter clitkCommon )
306 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkNormalizeImageFilter)
308 WRAP_GGO(clitkImageGradientMagnitude_GGO_C clitkImageGradientMagnitude.ggo)
309 ADD_EXECUTABLE(clitkImageGradientMagnitude clitkImageGradientMagnitude.cxx ${clitkImageGradientMagnitude_GGO_C})
310 TARGET_LINK_LIBRARIES(clitkImageGradientMagnitude clitkCommon )
311 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageGradientMagnitude)
313 WRAP_GGO(clitkImageLaplacian_GGO_C clitkImageLaplacian.ggo)
314 ADD_EXECUTABLE(clitkImageLaplacian clitkImageLaplacian.cxx ${clitkImageLaplacian_GGO_C})
315 TARGET_LINK_LIBRARIES(clitkImageLaplacian clitkCommon )
316 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageLaplacian)
318 WRAP_GGO(clitkImageIntensityWindowing_GGO_C clitkImageIntensityWindowing.ggo)
319 ADD_EXECUTABLE(clitkImageIntensityWindowing clitkImageIntensityWindowing.cxx ${clitkImageIntensityWindowing_GGO_C})
320 TARGET_LINK_LIBRARIES(clitkImageIntensityWindowing clitkCommon )
321 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageIntensityWindowing)
323 WRAP_GGO(clitkBlurImage_GGO_C clitkBlurImage.ggo)
324 ADD_EXECUTABLE(clitkBlurImage clitkBlurImage.cxx ${clitkBlurImage_GGO_C})
325 TARGET_LINK_LIBRARIES(clitkBlurImage clitkCommon )
326 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBlurImage)
328 #=========================================================
329 option(CLITK_USE_ROOT "Build experimental tools using root" OFF)
331 FIND_PACKAGE(ROOT REQUIRED)
333 MESSAGE(STATUS "ROOT found : ${ROOT_LIBRARY_DIR} ${ROOT_INCLUDE_DIR} ${ROOT_LIBRARIES}")
336 "Cannot build without ROOT. Please set ROOTSYS environement variable.")
338 INCLUDE_DIRECTORIES(${ROOT_INCLUDE_DIR})
339 LINK_DIRECTORIES(${ROOT_LIBRARY_DIR})
340 WRAP_GGO(clitkMergeRootFiles_GGO_C clitkMergeRootFiles.ggo)
341 ADD_EXECUTABLE(clitkMergeRootFiles clitkMergeRootFiles.cxx GateMergeManager.cc ${clitkMergeRootFiles_GGO_C})
342 TARGET_LINK_LIBRARIES(clitkMergeRootFiles ${ROOT_LIBRARIES})
343 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMergeRootFiles)
345 #=========================================================
348 #=========================================================
349 IF(CLITK_EXPERIMENTAL)
350 WRAP_GGO(clitkBinaryImageToMesh_GGO_C clitkBinaryImageToMesh.ggo)
351 ADD_EXECUTABLE(clitkBinaryImageToMesh clitkBinaryImageToMesh.cxx ${clitkBinaryImageToMesh_GGO_C})
352 TARGET_LINK_LIBRARIES(clitkBinaryImageToMesh clitkCommon)
353 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBinaryImageToMesh)
355 WRAP_GGO(clitkMeshToBinaryImage_GGO_C clitkMeshToBinaryImage.ggo)
356 ADD_EXECUTABLE(clitkMeshToBinaryImage clitkMeshToBinaryImage.cxx ${clitkMeshToBinaryImage_GGO_C})
357 TARGET_LINK_LIBRARIES(clitkMeshToBinaryImage clitkCommon)
358 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshToBinaryImage)
360 WRAP_GGO(clitkMeshViewer_GGO_C clitkMeshViewer.ggo)
361 ADD_EXECUTABLE(clitkMeshViewer clitkMeshViewer.cxx ${clitkMeshViewer_GGO_C})
362 TARGET_LINK_LIBRARIES(clitkMeshViewer clitkCommon)
363 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshViewer)
364 ENDIF(CLITK_EXPERIMENTAL)
365 #=========================================================
368 #=========================================================
369 IF(ITK_VERSION_MAJOR VERSION_LESS 4)
370 MESSAGE("clitkDice is not compatible with ITK<4. It will not be built.")
371 MESSAGE("clitkDicomRTPlan2Gate is not compatible with GDCM<2 (ITK<4). It will not be built.")
372 ELSE(ITK_VERSION_MAJOR VERSION_LESS 4)
373 WRAP_GGO(clitkDice_GGO_C clitkDice.ggo)
374 ADD_EXECUTABLE(clitkDice clitkDice.cxx ${clitkDice_GGO_C})
375 TARGET_LINK_LIBRARIES(clitkDice clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES} )
376 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDice)
378 WRAP_GGO(clitkDicomRTPlan2Gate_GGO_C clitkDicomRTPlan2Gate.ggo)
379 ADD_EXECUTABLE(clitkDicomRTPlan2Gate clitkDicomRTPlan2Gate.cxx clitkDicomRTPlan2Gate_ggo.c)
380 TARGET_LINK_LIBRARIES(clitkDicomRTPlan2Gate clitkCommon)
381 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomRTPlan2Gate)
382 ENDIF(ITK_VERSION_MAJOR VERSION_LESS 4)
383 #=========================================================
386 INSTALL (TARGETS ${TOOLS_INSTALL} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
388 ENDIF(CLITK_BUILD_TOOLS)