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(clitkMatrixInverse_GGO_C clitkMatrixInverse.ggo)
124 ADD_EXECUTABLE(clitkMatrixInverse clitkMatrixInverse.cxx ${clitkMatrixInverse_GGO_C})
125 TARGET_LINK_LIBRARIES(clitkMatrixInverse clitkCommon )
126 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMatrixInverse)
128 WRAP_GGO(clitkSetBackground_GGO_C clitkSetBackground.ggo)
129 ADD_EXECUTABLE(clitkSetBackground clitkSetBackground.cxx clitkSetBackgroundGenericFilter.cxx ${clitkSetBackground_GGO_C})
130 TARGET_LINK_LIBRARIES(clitkSetBackground clitkCommon)
131 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSetBackground)
133 WRAP_GGO(clitkGammaIndex_GGO_C clitkGammaIndex.ggo)
134 ADD_EXECUTABLE(clitkGammaIndex clitkGammaIndex.cxx ${clitkGammaIndex_GGO_C})
135 TARGET_LINK_LIBRARIES(clitkGammaIndex clitkCommon)
136 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGammaIndex)
138 ADD_EXECUTABLE(clitkImageArithm clitkImageArithm.cxx)
139 TARGET_LINK_LIBRARIES(clitkImageArithm clitkImageArithmImageLib clitkCommon )
140 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageArithm)
142 ADD_EXECUTABLE(clitkVectorArithm clitkVectorArithm.cxx)
143 TARGET_LINK_LIBRARIES(clitkVectorArithm clitkVectorArithmLib clitkCommon )
144 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVectorArithm)
146 WRAP_GGO(clitkUnsharpMask_GGO_C clitkUnsharpMask.ggo)
147 ADD_EXECUTABLE(clitkUnsharpMask clitkUnsharpMask.cxx ${clitkUnsharpMask_GGO_C})
148 TARGET_LINK_LIBRARIES(clitkUnsharpMask clitkCommon )
149 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkUnsharpMask)
151 WRAP_GGO(clitkFooImage_GGO_C clitkFooImage.ggo)
152 ADD_EXECUTABLE(clitkFooImage clitkFooImage.cxx ${clitkFooImage_GGO_C})
153 TARGET_LINK_LIBRARIES(clitkFooImage clitkCommon )
154 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkFooImage)
156 WRAP_GGO(clitkMedianImageFilter_GGO_C clitkMedianImageFilter.ggo)
157 ADD_EXECUTABLE(clitkMedianImageFilter clitkMedianImageFilter.cxx ${clitkMedianImageFilter_GGO_C})
158 TARGET_LINK_LIBRARIES(clitkMedianImageFilter clitkMedianImageFilterLib clitkCommon)
159 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMedianImageFilter)
161 ADD_EXECUTABLE(clitkResampleImage clitkResampleImage.cxx)
162 TARGET_LINK_LIBRARIES(clitkResampleImage clitkResampleImageLib clitkCommon)
163 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkResampleImage)
165 WRAP_GGO(clitkMinMaxMask_GGO_C clitkMinMaxMask.ggo)
166 ADD_EXECUTABLE(clitkMinMaxMask clitkMinMaxMask.cxx ${clitkMinMaxMask_GGO_C})
167 TARGET_LINK_LIBRARIES(clitkMinMaxMask clitkCommon )
168 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMinMaxMask)
170 WRAP_GGO(clitkAutoCrop_GGO_C clitkAutoCrop.ggo)
171 ADD_EXECUTABLE(clitkAutoCrop clitkAutoCrop.cxx ${clitkAutoCrop_GGO_C})
172 TARGET_LINK_LIBRARIES(clitkAutoCrop clitkCommon )
173 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAutoCrop)
175 WRAP_GGO(clitkDicomRTStruct2Image_GGO_C clitkDicomRTStruct2Image.ggo)
176 ADD_EXECUTABLE(clitkDicomRTStruct2Image clitkDicomRTStruct2Image.cxx ${clitkDicomRTStruct2Image_GGO_C})
177 TARGET_LINK_LIBRARIES(clitkDicomRTStruct2Image clitkDicomRTStruct)
178 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomRTStruct2Image)
180 IF(CLITK_USE_SYSTEM_GDCM)
181 WRAP_GGO(clitkImage2DicomRTStruct_GGO_C clitkImage2DicomRTStruct.ggo)
182 ADD_EXECUTABLE(clitkImage2DicomRTStruct clitkImage2DicomRTStruct.cxx ${clitkImage2DicomRTStruct_GGO_C})
183 TARGET_LINK_LIBRARIES(clitkImage2DicomRTStruct clitkDicomRTStruct)
186 WRAP_GGO(clitkComposeVF_GGO_C clitkComposeVF.ggo)
187 ADD_EXECUTABLE(clitkComposeVF clitkComposeVFGenericFilter.cxx clitkComposeVF.cxx ${clitkComposeVF_GGO_C})
188 TARGET_LINK_LIBRARIES(clitkComposeVF clitkCommon )
189 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkComposeVF)
191 WRAP_GGO(clitkMergeSequence_GGO_C clitkMergeSequence.ggo)
192 ADD_EXECUTABLE(clitkMergeSequence clitkMergeSequence.cxx clitkMergeSequenceGenericFilter.cxx ${clitkMergeSequence_GGO_C})
193 TARGET_LINK_LIBRARIES(clitkMergeSequence clitkCommon)
194 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMergeSequence)
196 WRAP_GGO(clitkBackProjectImage_GGO_C clitkBackProjectImage.ggo)
197 ADD_EXECUTABLE(clitkBackProjectImage clitkBackProjectImage.cxx clitkBackProjectImageGenericFilter.cxx ${clitkBackProjectImage_GGO_C})
198 TARGET_LINK_LIBRARIES(clitkBackProjectImage clitkCommon)
199 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBackProjectImage)
201 ADD_EXECUTABLE(clitkCropImage clitkCropImage.cxx ${clitkCropImage_GGO_C})
202 TARGET_LINK_LIBRARIES(clitkCropImage clitkCropImageLib clitkCommon)
203 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkCropImage)
205 # WRAP_GGO(clitkExtractSlice_GGO_C clitkExtractSlice.ggo)
206 # ADD_EXECUTABLE(clitkExtractSlice clitkExtractSlice.cxx clitkExtractSliceGenericFilter.cxx ${clitkExtractSlice_GGO_C})
207 # TARGET_LINK_LIBRARIES(clitkExtractSlice clitkCommon)
208 #SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkExtractSlice)
210 WRAP_GGO(clitkFlipImage_GGO_C clitkFlipImage.ggo)
211 ADD_EXECUTABLE(clitkFlipImage clitkFlipImage.cxx clitkFlipImageGenericFilter.cxx ${clitkFlipImage_GGO_C})
212 TARGET_LINK_LIBRARIES(clitkFlipImage clitkCommon)
213 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkFlipImage)
215 WRAP_GGO(clitkMirrorPadImage_GGO_C clitkMirrorPadImage.ggo)
216 ADD_EXECUTABLE(clitkMirrorPadImage clitkMirrorPadImage.cxx clitkMirrorPadImageGenericFilter.cxx ${clitkMirrorPadImage_GGO_C})
217 TARGET_LINK_LIBRARIES(clitkMirrorPadImage clitkCommon)
218 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMirrorPadImage)
220 WRAP_GGO(clitkImageMoment_GGO_C clitkImageMoment.ggo)
221 ADD_EXECUTABLE(clitkImageMoment clitkImageMoment.cxx clitkImageMomentGenericFilter.cxx ${clitkImageMoment_GGO_C})
222 TARGET_LINK_LIBRARIES(clitkImageMoment clitkCommon)
223 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageMoment)
225 WRAP_GGO(clitkImageStatistics_GGO_C clitkImageStatistics.ggo)
226 ADD_EXECUTABLE(clitkImageStatistics clitkImageStatistics.cxx clitkImageStatisticsGenericFilter.cxx ${clitkImageStatistics_GGO_C})
227 TARGET_LINK_LIBRARIES(clitkImageStatistics clitkCommon)
228 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageStatistics)
230 WRAP_GGO(clitkVFConvert_GGO_C clitkVFConvert.ggo)
231 ADD_EXECUTABLE(clitkVFConvert clitkVFConvert.cxx clitkVFConvertGenericFilter.cxx ${clitkVFConvert_GGO_C})
232 TARGET_LINK_LIBRARIES(clitkVFConvert clitkCommon )
233 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVFConvert)
235 WRAP_GGO(clitkImageToVectorImage_GGO_C clitkImageToVectorImage.ggo)
236 ADD_EXECUTABLE(clitkImageToVectorImage clitkImageToVectorImage.cxx clitkImageToVectorImageGenericFilter.cxx ${clitkImageToVectorImage_GGO_C})
237 TARGET_LINK_LIBRARIES(clitkImageToVectorImage clitkCommon)
238 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageToVectorImage)
240 WRAP_GGO(clitkVectorImageToImage_GGO_C clitkVectorImageToImage.ggo)
241 ADD_EXECUTABLE(clitkVectorImageToImage clitkVectorImageToImage.cxx clitkVectorImageToImageGenericFilter.cxx ${clitkVectorImageToImage_GGO_C})
242 TARGET_LINK_LIBRARIES(clitkVectorImageToImage clitkCommon)
243 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVectorImageToImage)
245 ADD_EXECUTABLE(clitkMIP clitkMIP.cxx clitkMIPGenericFilter.cxx)
246 TARGET_LINK_LIBRARIES(clitkMIP clitkMIPLib clitkCommon)
247 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMIP)
249 WRAP_GGO(clitkTransformLandmarks_GGO_C clitkTransformLandmarks.ggo)
250 ADD_EXECUTABLE(clitkTransformLandmarks clitkTransformLandmarks.cxx ${clitkTransformLandmarks_GGO_C})
251 TARGET_LINK_LIBRARIES(clitkTransformLandmarks clitkCommon)
252 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkTransformLandmarks)
254 WRAP_GGO(clitkMaskLandmarks_GGO_C clitkMaskLandmarks.ggo)
255 ADD_EXECUTABLE(clitkMaskLandmarks clitkMaskLandmarks.cxx ${clitkMaskLandmarks_GGO_C})
256 TARGET_LINK_LIBRARIES(clitkMaskLandmarks clitkCommon)
257 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMaskLandmarks)
259 WRAP_GGO(clitkJacobianImage_GGO_C clitkJacobianImage.ggo)
260 ADD_EXECUTABLE(clitkJacobianImage clitkJacobianImage.cxx clitkJacobianImageGenericFilter.cxx ${clitkJacobianImage_GGO_C})
261 TARGET_LINK_LIBRARIES(clitkJacobianImage clitkCommon)
262 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkJacobianImage)
264 WRAP_GGO(clitkPadImage_GGO_C clitkPadImage.ggo)
265 ADD_EXECUTABLE(clitkPadImage clitkPadImage.cxx clitkPadImageGenericFilter.cxx ${clitkPadImage_GGO_C})
266 TARGET_LINK_LIBRARIES(clitkPadImage clitkCommon)
267 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkPadImage)
269 WRAP_GGO(clitkCatImage_GGO_C clitkCatImage.ggo)
270 ADD_EXECUTABLE(clitkCatImage clitkCatImage.cxx ${clitkCatImage_GGO_C})
271 TARGET_LINK_LIBRARIES(clitkCatImage clitkCommon)
272 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkCatImage)
274 WRAP_GGO(clitkAnisotropicDiffusion_GGO_C clitkAnisotropicDiffusion.ggo)
275 ADD_EXECUTABLE(clitkAnisotropicDiffusion clitkAnisotropicDiffusion.cxx
276 clitkAnisotropicDiffusionGenericFilter.cxx
277 ${clitkAnisotropicDiffusion_GGO_C})
278 TARGET_LINK_LIBRARIES(clitkAnisotropicDiffusion clitkCommon)
279 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAnisotropicDiffusion)
281 WRAP_GGO(clitkChangeImageInfo_GGO_C clitkChangeImageInfo.ggo)
282 ADD_EXECUTABLE(clitkChangeImageInfo clitkChangeImageInfo.cxx
283 clitkChangeImageInfoGenericFilter.cxx
284 ${clitkChangeImageInfo_GGO_C})
285 TARGET_LINK_LIBRARIES(clitkChangeImageInfo clitkCommon)
286 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkChangeImageInfo)
288 WRAP_GGO(clitkMergeAsciiDoseActor_GGO_C clitkMergeAsciiDoseActor.ggo)
289 ADD_EXECUTABLE(clitkMergeAsciiDoseActor clitkMergeAsciiDoseActor.cxx ${clitkMergeAsciiDoseActor_GGO_C})
290 TARGET_LINK_LIBRARIES(clitkMergeAsciiDoseActor ITKCommon clitkCommon)
291 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMergeAsciiDoseActor)
293 WRAP_GGO(clitkImageUncertainty_GGO_C clitkImageUncertainty.ggo)
294 ADD_EXECUTABLE(clitkImageUncertainty clitkImageUncertainty.cxx clitkImageUncertainty_ggo.c)
295 TARGET_LINK_LIBRARIES(clitkImageUncertainty clitkCommon ${ITK_LIBRARIES})
296 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageUncertainty)
298 WRAP_GGO(clitkImageGradientMagnitude_GGO_C clitkImageGradientMagnitude.ggo)
299 ADD_EXECUTABLE(clitkImageGradientMagnitude clitkImageGradientMagnitude.cxx ${clitkImageGradientMagnitude_GGO_C})
300 TARGET_LINK_LIBRARIES(clitkImageGradientMagnitude clitkCommon )
301 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageGradientMagnitude)
303 WRAP_GGO(clitkImageLaplacian_GGO_C clitkImageLaplacian.ggo)
304 ADD_EXECUTABLE(clitkImageLaplacian clitkImageLaplacian.cxx ${clitkImageLaplacian_GGO_C})
305 TARGET_LINK_LIBRARIES(clitkImageLaplacian clitkCommon )
306 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageLaplacian)
308 WRAP_GGO(clitkImageIntensityWindowing_GGO_C clitkImageIntensityWindowing.ggo)
309 ADD_EXECUTABLE(clitkImageIntensityWindowing clitkImageIntensityWindowing.cxx ${clitkImageIntensityWindowing_GGO_C})
310 TARGET_LINK_LIBRARIES(clitkImageIntensityWindowing clitkCommon )
311 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageIntensityWindowing)
314 #=========================================================
315 option(CLITK_USE_ROOT "Build experimental tools using root" OFF)
317 FIND_PACKAGE(ROOT REQUIRED)
319 MESSAGE(STATUS "ROOT found : ${ROOT_LIBRARY_DIR} ${ROOT_INCLUDE_DIR} ${ROOT_LIBRARIES}")
322 "Cannot build without ROOT. Please set ROOTSYS environement variable.")
324 INCLUDE_DIRECTORIES(${ROOT_INCLUDE_DIR})
325 LINK_DIRECTORIES(${ROOT_LIBRARY_DIR})
326 WRAP_GGO(clitkMergeRootFiles_GGO_C clitkMergeRootFiles.ggo)
327 ADD_EXECUTABLE(clitkMergeRootFiles clitkMergeRootFiles.cxx GateMergeManager.cc ${clitkMergeRootFiles_GGO_C})
328 TARGET_LINK_LIBRARIES(clitkMergeRootFiles ${ROOT_LIBRARIES})
329 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMergeRootFiles)
331 #=========================================================
334 #=========================================================
335 IF(CLITK_EXPERIMENTAL)
336 WRAP_GGO(clitkBinaryImageToMesh_GGO_C clitkBinaryImageToMesh.ggo)
337 ADD_EXECUTABLE(clitkBinaryImageToMesh clitkBinaryImageToMesh.cxx ${clitkBinaryImageToMesh_GGO_C})
338 TARGET_LINK_LIBRARIES(clitkBinaryImageToMesh clitkCommon)
339 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBinaryImageToMesh)
341 WRAP_GGO(clitkMeshToBinaryImage_GGO_C clitkMeshToBinaryImage.ggo)
342 ADD_EXECUTABLE(clitkMeshToBinaryImage clitkMeshToBinaryImage.cxx ${clitkMeshToBinaryImage_GGO_C})
343 TARGET_LINK_LIBRARIES(clitkMeshToBinaryImage clitkCommon)
344 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshToBinaryImage)
346 WRAP_GGO(clitkMeshViewer_GGO_C clitkMeshViewer.ggo)
347 ADD_EXECUTABLE(clitkMeshViewer clitkMeshViewer.cxx ${clitkMeshViewer_GGO_C})
348 TARGET_LINK_LIBRARIES(clitkMeshViewer clitkCommon)
349 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshViewer)
350 ENDIF(CLITK_EXPERIMENTAL)
351 #=========================================================
354 #=========================================================
355 IF(ITK_VERSION_MAJOR VERSION_LESS 4)
356 MESSAGE("clitkDice is not compatible with ITK<4. It will not be built.")
357 MESSAGE("clitkDicomRTPlan2Gate is not compatible with GDCM<2 (ITK<4). It will not be built.")
358 ELSE(ITK_VERSION_MAJOR VERSION_LESS 4)
359 WRAP_GGO(clitkDice_GGO_C clitkDice.ggo)
360 ADD_EXECUTABLE(clitkDice clitkDice.cxx ${clitkDice_GGO_C})
361 TARGET_LINK_LIBRARIES(clitkDice clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES} )
362 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDice)
364 WRAP_GGO(clitkDicomRTPlan2Gate_GGO_C clitkDicomRTPlan2Gate.ggo)
365 ADD_EXECUTABLE(clitkDicomRTPlan2Gate clitkDicomRTPlan2Gate.cxx clitkDicomRTPlan2Gate_ggo.c)
366 TARGET_LINK_LIBRARIES(clitkDicomRTPlan2Gate clitkCommon)
367 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomRTPlan2Gate)
368 ENDIF(ITK_VERSION_MAJOR VERSION_LESS 4)
369 #=========================================================
372 INSTALL (TARGETS ${TOOLS_INSTALL} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
374 ENDIF(CLITK_BUILD_TOOLS)