]> Creatis software - clitk.git/blob - tools/CMakeLists.txt
Update Landmark coordinates with transformation matrix
[clitk.git] / tools / CMakeLists.txt
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})
5
6 WRAP_GGO(clitkImageConvert_GGO_C clitkImageConvert.ggo)
7 add_library(clitkImageConvertLib clitkImageConvertGenericFilter.cxx ${clitkImageConvert_GGO_C})
8
9 WRAP_GGO(clitkBinarizeImage_GGO_C clitkBinarizeImage.ggo)
10 add_library(clitkBinarizeImageLib clitkBinarizeImageGenericFilter.cxx ${clitkBinarizeImage_GGO_C})
11
12 WRAP_GGO(clitkProfileImage_GGO_C clitkProfileImage.ggo)
13 add_library(clitkProfileImageLib clitkProfileImageGenericFilter.cxx ${clitkProfileImage_GGO_C})
14
15 WRAP_GGO(clitkImageArithm_GGO_C clitkImageArithm.ggo)
16 add_library(clitkImageArithmImageLib clitkImageArithmGenericFilter.cxx ${clitkImageArithm_GGO_C})
17
18 WRAP_GGO(clitkVectorArithm_GGO_C clitkVectorArithm.ggo)
19 add_library(clitkVectorArithmLib clitkVectorArithmGenericFilter.cxx ${clitkVectorArithm_GGO_C})
20
21 WRAP_GGO(clitkResampleImage_GGO_C clitkResampleImage.ggo)
22 add_library(clitkResampleImageLib clitkResampleImageGenericFilter.cxx ${clitkResampleImage_GGO_C})
23
24 WRAP_GGO(clitkMIP_GGO_C clitkMIP.ggo)
25 add_library(clitkMIPLib clitkMIPGenericFilter.cxx ${clitkMIP_GGO_C})
26
27 WRAP_GGO(clitkMedianImageFilter_GGO_C clitkMedianImageFilter.ggo)
28 add_library(clitkMedianImageFilterLib clitkMedianImageGenericFilter.cxx ${clitkMedianImageFilter_GGO_C})
29
30 #=========================================================
31 if(CLITK_BUILD_TOOLS)
32
33   WRAP_GGO(clitkDicomInfo_GGO_C clitkDicomInfo.ggo)
34   add_executable(clitkDicomInfo clitkDicomInfo.cxx ${clitkDicomInfo_GGO_C})
35   target_link_libraries(clitkDicomInfo clitkCommon)
36   # set_target_properties(clitkDicomInfo
37   #   PROPERTIES
38   #   LINK_INTERFACE_LIBRARIES ""
39   #   )
40   set(TOOLS_INSTALL clitkDicomInfo)
41
42   WRAP_GGO(clitkDicom2Image_GGO_C clitkDicom2Image.ggo)
43   add_executable(clitkDicom2Image clitkDicom2Image.cxx ${clitkDicom2Image_GGO_C})
44   target_link_libraries(clitkDicom2Image clitkCommon)
45   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicom2Image)
46
47   WRAP_GGO(clitkDicomWave2Text_GGO_C clitkDicomWave2Text.ggo)
48   add_executable(clitkDicomWave2Text clitkDicomWave2Text.cxx ${clitkDicomWave2Text_GGO_C})
49   target_link_libraries(clitkDicomWave2Text clitkCommon)
50   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomWave2Text)
51
52   WRAP_GGO(clitkImageInfo_GGO_C clitkImageInfo.ggo)
53   add_executable(clitkImageInfo clitkImageInfo.cxx ${clitkImageInfo_GGO_C})
54   target_link_libraries(clitkImageInfo clitkCommon)
55   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageInfo)
56
57   add_executable(clitkImageConvert clitkImageConvert.cxx)
58   target_link_libraries(clitkImageConvert clitkImageConvertLib clitkCommon)
59   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageConvert)
60
61   add_executable(clitkBinarizeImage clitkBinarizeImage.cxx)
62   target_link_libraries(clitkBinarizeImage clitkBinarizeImageLib clitkCommon)
63   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBinarizeImage)
64   
65   add_executable(clitkProfileImage clitkProfileImage.cxx)
66   target_link_libraries(clitkProfileImage clitkProfileImageLib clitkCommon)
67   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkProfileImage)
68
69   WRAP_GGO(clitkVFResample_GGO_C clitkVFResample.ggo)
70   add_executable(clitkVFResample clitkVFResample.cxx clitkVFResampleGenericFilter.cxx ${clitkVFResample_GGO_C})
71   target_link_libraries(clitkVFResample clitkCommon)
72   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVFResample)
73
74   WRAP_GGO(clitkVFInterpolate_GGO_C clitkVFInterpolate.ggo)
75   add_executable(clitkVFInterpolate clitkVFInterpolate.cxx clitkVFInterpolateGenericFilter.cxx ${clitkVFInterpolate_GGO_C})
76   target_link_libraries(clitkVFInterpolate clitkCommon)
77   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVFInterpolate)
78
79   WRAP_GGO(clitkImageCreate_GGO_C clitkImageCreate.ggo)
80   add_executable(clitkImageCreate clitkImageCreate.cxx ${clitkImageCreate_GGO_C})
81   target_link_libraries(clitkImageCreate clitkCommon)
82   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageCreate)
83
84   WRAP_GGO(clitkZeroVF_GGO_C clitkZeroVF.ggo)
85   add_executable(clitkZeroVF clitkZeroVF.cxx ${clitkZeroVF_GGO_C} clitkZeroVFGenericFilter.cxx)
86   target_link_libraries(clitkZeroVF clitkCommon)
87   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkZeroVF)
88
89   WRAP_GGO(clitkSplitImage_GGO_C clitkSplitImage.ggo)
90   add_executable(clitkSplitImage clitkSplitImage.cxx clitkSplitImageGenericFilter.cxx ${clitkSplitImage_GGO_C})
91   target_link_libraries(clitkSplitImage clitkCommon )
92   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSplitImage)
93
94   WRAP_GGO(clitkWriteDicomSeries_GGO_C clitkWriteDicomSeries.ggo)
95   add_executable(clitkWriteDicomSeries clitkWriteDicomSeries.cxx ${clitkWriteDicomSeries_GGO_C})
96   target_link_libraries(clitkWriteDicomSeries clitkCommon )
97   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkWriteDicomSeries)
98
99   WRAP_GGO(clitkMedianTemporalDimension_GGO_C clitkMedianTemporalDimension.ggo)
100   add_executable(clitkMedianTemporalDimension clitkMedianTemporalDimension.cxx
101     ${clitkMedianTemporalDimension_GGO_C})
102   target_link_libraries(clitkMedianTemporalDimension clitkCommon )
103   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMedianTemporalDimension)
104
105   WRAP_GGO(clitkWarpImage_GGO_C clitkWarpImage.ggo)
106   add_executable(clitkWarpImage clitkWarpImage.cxx ${clitkWarpImage_GGO_C} clitkWarpImageGenericFilter.cxx)
107   target_link_libraries(clitkWarpImage clitkCommon)
108   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkWarpImage)
109
110   WRAP_GGO(clitkInvertVF_GGO_C clitkInvertVF.ggo)
111   add_executable(clitkInvertVF clitkInvertVF.cxx ${clitkInvertVF_GGO_C})
112   target_link_libraries(clitkInvertVF clitkCommon)
113   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkInvertVF)
114
115   WRAP_GGO(clitkAffineTransform_GGO_C clitkAffineTransform.ggo)
116   add_executable(clitkAffineTransform clitkAffineTransform.cxx ${clitkAffineTransform_GGO_C})
117   target_link_libraries(clitkAffineTransform clitkCommon )
118   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAffineTransform)
119
120   WRAP_GGO(clitkElastixTransformToMatrix_GGO_C clitkElastixTransformToMatrix.ggo)
121   add_executable(clitkElastixTransformToMatrix clitkElastixTransformToMatrix.cxx ${clitkElastixTransformToMatrix_GGO_C})
122   target_link_libraries(clitkElastixTransformToMatrix clitkCommon )
123   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkElastixTransformToMatrix)
124
125   WRAP_GGO(clitkMatrixToElastixTransform_GGO_C clitkMatrixToElastixTransform.ggo)
126   add_executable(clitkMatrixToElastixTransform clitkMatrixToElastixTransform.cxx ${clitkMatrixToElastixTransform_GGO_C})
127   target_link_libraries(clitkMatrixToElastixTransform clitkCommon )
128   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMatrixToElastixTransform)
129
130   WRAP_GGO(clitkMatrixMultiply_GGO_C clitkMatrixMultiply.ggo)
131   add_executable(clitkMatrixMultiply clitkMatrixMultiply.cxx ${clitkMatrixMultiply_GGO_C})
132   target_link_libraries(clitkMatrixMultiply clitkCommon )
133   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMatrixMultiply)
134
135   WRAP_GGO(clitkMatrixInverse_GGO_C clitkMatrixInverse.ggo)
136   add_executable(clitkMatrixInverse clitkMatrixInverse.cxx ${clitkMatrixInverse_GGO_C})
137   target_link_libraries(clitkMatrixInverse clitkCommon )
138   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMatrixInverse)
139
140   WRAP_GGO(clitkSetBackground_GGO_C clitkSetBackground.ggo)
141   add_executable(clitkSetBackground clitkSetBackground.cxx clitkSetBackgroundGenericFilter.cxx ${clitkSetBackground_GGO_C})
142   target_link_libraries(clitkSetBackground clitkCommon)
143   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSetBackground)
144
145   WRAP_GGO(clitkGammaIndex_GGO_C clitkGammaIndex.ggo)
146   add_executable(clitkGammaIndex clitkGammaIndex.cxx ${clitkGammaIndex_GGO_C})
147   target_link_libraries(clitkGammaIndex clitkCommon)
148   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGammaIndex)
149
150   add_executable(clitkImageArithm clitkImageArithm.cxx)
151   target_link_libraries(clitkImageArithm clitkImageArithmImageLib clitkCommon )
152   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageArithm)
153
154   add_executable(clitkVectorArithm clitkVectorArithm.cxx)
155   target_link_libraries(clitkVectorArithm clitkVectorArithmLib clitkCommon )
156   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVectorArithm)
157
158   WRAP_GGO(clitkUnsharpMask_GGO_C clitkUnsharpMask.ggo)
159   add_executable(clitkUnsharpMask clitkUnsharpMask.cxx ${clitkUnsharpMask_GGO_C})
160   target_link_libraries(clitkUnsharpMask clitkCommon )
161   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkUnsharpMask)
162
163   WRAP_GGO(clitkMedianImageFilter_GGO_C clitkMedianImageFilter.ggo)
164   add_executable(clitkMedianImageFilter clitkMedianImageFilter.cxx ${clitkMedianImageFilter_GGO_C})
165   target_link_libraries(clitkMedianImageFilter clitkMedianImageFilterLib clitkCommon)
166   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMedianImageFilter)
167
168   add_executable(clitkResampleImage clitkResampleImage.cxx)
169   target_link_libraries(clitkResampleImage clitkResampleImageLib clitkCommon)
170   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkResampleImage)
171
172   WRAP_GGO(clitkMinMaxMask_GGO_C clitkMinMaxMask.ggo)
173   add_executable(clitkMinMaxMask clitkMinMaxMask.cxx ${clitkMinMaxMask_GGO_C})
174   target_link_libraries(clitkMinMaxMask clitkCommon  )
175   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMinMaxMask)
176
177   WRAP_GGO(clitkAutoCrop_GGO_C clitkAutoCrop.ggo)
178   add_executable(clitkAutoCrop clitkAutoCrop.cxx ${clitkAutoCrop_GGO_C})
179   target_link_libraries(clitkAutoCrop clitkCommon )
180   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAutoCrop)
181
182   WRAP_GGO(clitkDicomRTStruct2Image_GGO_C clitkDicomRTStruct2Image.ggo)
183   add_executable(clitkDicomRTStruct2Image clitkDicomRTStruct2Image.cxx ${clitkDicomRTStruct2Image_GGO_C})
184   target_link_libraries(clitkDicomRTStruct2Image clitkDicomRTStruct)
185   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomRTStruct2Image)
186
187   if(CLITK_USE_SYSTEM_GDCM)
188     WRAP_GGO(clitkImage2DicomRTStruct_GGO_C clitkImage2DicomRTStruct.ggo)
189     add_executable(clitkImage2DicomRTStruct clitkImage2DicomRTStruct.cxx ${clitkImage2DicomRTStruct_GGO_C})
190     target_link_libraries(clitkImage2DicomRTStruct clitkDicomRTStruct)
191   endif()
192
193   WRAP_GGO(clitkComposeVF_GGO_C clitkComposeVF.ggo)
194   add_executable(clitkComposeVF clitkComposeVFGenericFilter.cxx clitkComposeVF.cxx ${clitkComposeVF_GGO_C})
195   target_link_libraries(clitkComposeVF clitkCommon  )
196   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkComposeVF)
197
198   WRAP_GGO(clitkMergeSequence_GGO_C clitkMergeSequence.ggo)
199   add_executable(clitkMergeSequence clitkMergeSequence.cxx clitkMergeSequenceGenericFilter.cxx ${clitkMergeSequence_GGO_C})
200   target_link_libraries(clitkMergeSequence clitkCommon)
201   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMergeSequence)
202
203   WRAP_GGO(clitkBackProjectImage_GGO_C clitkBackProjectImage.ggo)
204   add_executable(clitkBackProjectImage clitkBackProjectImage.cxx clitkBackProjectImageGenericFilter.cxx ${clitkBackProjectImage_GGO_C})
205   target_link_libraries(clitkBackProjectImage clitkCommon)
206   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBackProjectImage)
207
208   add_executable(clitkCropImage clitkCropImage.cxx ${clitkCropImage_GGO_C})
209   target_link_libraries(clitkCropImage clitkCropImageLib clitkCommon)
210   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkCropImage)
211
212   # WRAP_GGO(clitkExtractSlice_GGO_C clitkExtractSlice.ggo)
213   # add_executable(clitkExtractSlice clitkExtractSlice.cxx clitkExtractSliceGenericFilter.cxx ${clitkExtractSlice_GGO_C})
214   # target_link_libraries(clitkExtractSlice clitkCommon)
215   #set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkExtractSlice)
216
217   WRAP_GGO(clitkFlipImage_GGO_C clitkFlipImage.ggo)
218   add_executable(clitkFlipImage clitkFlipImage.cxx clitkFlipImageGenericFilter.cxx ${clitkFlipImage_GGO_C})
219   target_link_libraries(clitkFlipImage clitkCommon)
220   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkFlipImage)
221
222   WRAP_GGO(clitkMirrorPadImage_GGO_C clitkMirrorPadImage.ggo)
223   add_executable(clitkMirrorPadImage clitkMirrorPadImage.cxx clitkMirrorPadImageGenericFilter.cxx ${clitkMirrorPadImage_GGO_C})
224   target_link_libraries(clitkMirrorPadImage clitkCommon)
225   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMirrorPadImage)
226
227   WRAP_GGO(clitkImageMoment_GGO_C clitkImageMoment.ggo)
228   add_executable(clitkImageMoment clitkImageMoment.cxx clitkImageMomentGenericFilter.cxx ${clitkImageMoment_GGO_C})
229   target_link_libraries(clitkImageMoment clitkCommon)
230   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageMoment)
231
232   WRAP_GGO(clitkImageStatistics_GGO_C clitkImageStatistics.ggo)
233   add_executable(clitkImageStatistics clitkImageStatistics.cxx clitkImageStatisticsGenericFilter.cxx ${clitkImageStatistics_GGO_C})
234   target_link_libraries(clitkImageStatistics clitkCommon)
235   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageStatistics)
236
237   WRAP_GGO(clitkVFConvert_GGO_C clitkVFConvert.ggo)
238   add_executable(clitkVFConvert clitkVFConvert.cxx clitkVFConvertGenericFilter.cxx ${clitkVFConvert_GGO_C})
239   target_link_libraries(clitkVFConvert clitkCommon )
240   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVFConvert)
241
242   WRAP_GGO(clitkImageToVectorImage_GGO_C clitkImageToVectorImage.ggo)
243   add_executable(clitkImageToVectorImage  clitkImageToVectorImage.cxx clitkImageToVectorImageGenericFilter.cxx ${clitkImageToVectorImage_GGO_C})
244   target_link_libraries(clitkImageToVectorImage  clitkCommon)
245   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageToVectorImage)
246
247   WRAP_GGO(clitkVectorImageToImage_GGO_C clitkVectorImageToImage.ggo)
248   add_executable(clitkVectorImageToImage  clitkVectorImageToImage.cxx clitkVectorImageToImageGenericFilter.cxx ${clitkVectorImageToImage_GGO_C})
249   target_link_libraries(clitkVectorImageToImage  clitkCommon)
250   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVectorImageToImage)
251   
252   WRAP_GGO(clitkNVectorImageTo4DImage_GGO_C clitkNVectorImageTo4DImage.ggo)
253   add_executable(clitkNVectorImageTo4DImage  clitkNVectorImageTo4DImage.cxx clitkNVectorImageTo4DImageGenericFilter.cxx ${clitkNVectorImageTo4DImage_GGO_C})
254   target_link_libraries(clitkNVectorImageTo4DImage  clitkCommon)
255   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkNVectorImageTo4DImage)
256
257   WRAP_GGO(clitk4DImageToNVectorImage_GGO_C clitk4DImageToNVectorImage.ggo)
258   add_executable(clitk4DImageToNVectorImage  clitk4DImageToNVectorImage.cxx clitk4DImageToNVectorImageGenericFilter.cxx ${clitk4DImageToNVectorImage_GGO_C})
259   target_link_libraries(clitk4DImageToNVectorImage  clitkCommon)
260   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitk4DImageToNVectorImage)
261
262   add_executable(clitkMIP clitkMIP.cxx clitkMIPGenericFilter.cxx)
263   target_link_libraries(clitkMIP clitkMIPLib clitkCommon)
264   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMIP)
265
266   WRAP_GGO(clitkSum_GGO_C clitkSum.ggo)
267   add_executable(clitkSum clitkSum.cxx ${clitkSum_GGO_C})
268   target_link_libraries(clitkSum clitkCommon)
269   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSum)
270
271   WRAP_GGO(clitkTransformLandmarks_GGO_C clitkTransformLandmarks.ggo)
272   add_executable(clitkTransformLandmarks clitkTransformLandmarks.cxx ${clitkTransformLandmarks_GGO_C})
273   target_link_libraries(clitkTransformLandmarks clitkCommon)
274   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkTransformLandmarks)
275
276   WRAP_GGO(clitkMaskLandmarks_GGO_C clitkMaskLandmarks.ggo)
277   add_executable(clitkMaskLandmarks clitkMaskLandmarks.cxx ${clitkMaskLandmarks_GGO_C})
278   target_link_libraries(clitkMaskLandmarks clitkCommon)
279   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMaskLandmarks)
280
281   WRAP_GGO(clitkJacobianImage_GGO_C clitkJacobianImage.ggo)
282   add_executable(clitkJacobianImage clitkJacobianImage.cxx clitkJacobianImageGenericFilter.cxx ${clitkJacobianImage_GGO_C})
283   target_link_libraries(clitkJacobianImage clitkCommon)
284   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkJacobianImage)
285
286   WRAP_GGO(clitkPadImage_GGO_C clitkPadImage.ggo)
287   add_executable(clitkPadImage clitkPadImage.cxx clitkPadImageGenericFilter.cxx ${clitkPadImage_GGO_C})
288   target_link_libraries(clitkPadImage clitkCommon)
289   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkPadImage)
290
291   WRAP_GGO(clitkCatImage_GGO_C clitkCatImage.ggo)
292   add_executable(clitkCatImage clitkCatImage.cxx ${clitkCatImage_GGO_C})
293   target_link_libraries(clitkCatImage clitkCommon)
294   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkCatImage)
295
296   WRAP_GGO(clitkAnisotropicDiffusion_GGO_C clitkAnisotropicDiffusion.ggo)
297   add_executable(clitkAnisotropicDiffusion clitkAnisotropicDiffusion.cxx
298     clitkAnisotropicDiffusionGenericFilter.cxx
299     ${clitkAnisotropicDiffusion_GGO_C})
300   target_link_libraries(clitkAnisotropicDiffusion clitkCommon)
301   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAnisotropicDiffusion)
302
303   WRAP_GGO(clitkChangeImageInfo_GGO_C clitkChangeImageInfo.ggo)
304   add_executable(clitkChangeImageInfo clitkChangeImageInfo.cxx
305     clitkChangeImageInfoGenericFilter.cxx
306     ${clitkChangeImageInfo_GGO_C})
307   target_link_libraries(clitkChangeImageInfo clitkCommon)
308   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkChangeImageInfo)
309
310   WRAP_GGO(clitkMergeAsciiDoseActor_GGO_C clitkMergeAsciiDoseActor.ggo)
311   add_executable(clitkMergeAsciiDoseActor clitkMergeAsciiDoseActor.cxx ${clitkMergeAsciiDoseActor_GGO_C})
312   target_link_libraries(clitkMergeAsciiDoseActor ITKCommon clitkCommon)
313   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMergeAsciiDoseActor)
314
315   WRAP_GGO(clitkImageUncertainty_GGO_C clitkImageUncertainty.ggo)
316   add_executable(clitkImageUncertainty clitkImageUncertainty.cxx clitkImageUncertainty_ggo.c)
317   target_link_libraries(clitkImageUncertainty clitkCommon ${ITK_LIBRARIES})
318   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageUncertainty)
319
320   WRAP_GGO(clitkNormalizeImageFilter_GGO_C clitkNormalizeImageFilter.ggo)
321   add_executable(clitkNormalizeImageFilter clitkNormalizeImageFilter.cxx ${clitkNormalizeImageFilter_GGO_C})
322   target_link_libraries(clitkNormalizeImageFilter clitkCommon )
323   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkNormalizeImageFilter)
324
325   WRAP_GGO(clitkImageGradientMagnitude_GGO_C clitkImageGradientMagnitude.ggo)
326   add_executable(clitkImageGradientMagnitude clitkImageGradientMagnitude.cxx ${clitkImageGradientMagnitude_GGO_C})
327   target_link_libraries(clitkImageGradientMagnitude clitkCommon )
328   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageGradientMagnitude)
329
330   WRAP_GGO(clitkImageLaplacian_GGO_C clitkImageLaplacian.ggo)
331   add_executable(clitkImageLaplacian clitkImageLaplacian.cxx ${clitkImageLaplacian_GGO_C})
332   target_link_libraries(clitkImageLaplacian clitkCommon )
333   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageLaplacian)
334
335   WRAP_GGO(clitkImageIntensityWindowing_GGO_C clitkImageIntensityWindowing.ggo)
336   add_executable(clitkImageIntensityWindowing clitkImageIntensityWindowing.cxx ${clitkImageIntensityWindowing_GGO_C})
337   target_link_libraries(clitkImageIntensityWindowing clitkCommon )
338   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageIntensityWindowing)
339
340   WRAP_GGO(clitkBlurImage_GGO_C clitkBlurImage.ggo)
341   add_executable(clitkBlurImage clitkBlurImage.cxx ${clitkBlurImage_GGO_C})
342   target_link_libraries(clitkBlurImage clitkCommon )
343   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBlurImage)
344
345   #=========================================================
346   option(CLITK_USE_ROOT "Build experimental tools using root" OFF)
347   if (CLITK_USE_ROOT)
348     find_package(ROOT REQUIRED)
349     if(ROOT_FOUND)
350       message(STATUS "ROOT found : ${ROOT_LIBRARY_DIR} ${ROOT_INCLUDE_DIR} ${ROOT_LIBRARIES}")
351     else(ROOT_FOUND)
352       message(FATAL_ERROR
353         "Cannot build without ROOT.  Please set ROOTSYS environement variable.")
354     endif(ROOT_FOUND)
355     include_directories(${ROOT_INCLUDE_DIR})
356     link_directories(${ROOT_LIBRARY_DIR})
357     WRAP_GGO(clitkMergeRootFiles_GGO_C clitkMergeRootFiles.ggo)
358     add_executable(clitkMergeRootFiles clitkMergeRootFiles.cxx GateMergeManager.cc ${clitkMergeRootFiles_GGO_C})
359     target_link_libraries(clitkMergeRootFiles ${ROOT_LIBRARIES})
360     set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMergeRootFiles)
361   endif()
362   #=========================================================
363
364
365   #=========================================================
366   if(CLITK_EXPERIMENTAL)
367     WRAP_GGO(clitkBinaryImageToMesh_GGO_C clitkBinaryImageToMesh.ggo)
368     add_executable(clitkBinaryImageToMesh clitkBinaryImageToMesh.cxx ${clitkBinaryImageToMesh_GGO_C})
369     target_link_libraries(clitkBinaryImageToMesh clitkCommon)
370     set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBinaryImageToMesh)
371
372     WRAP_GGO(clitkMeshToBinaryImage_GGO_C clitkMeshToBinaryImage.ggo)
373     add_executable(clitkMeshToBinaryImage clitkMeshToBinaryImage.cxx ${clitkMeshToBinaryImage_GGO_C})
374     target_link_libraries(clitkMeshToBinaryImage clitkCommon)
375     set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshToBinaryImage)
376
377     WRAP_GGO(clitkMeshViewer_GGO_C clitkMeshViewer.ggo)
378     add_executable(clitkMeshViewer clitkMeshViewer.cxx ${clitkMeshViewer_GGO_C})
379     target_link_libraries(clitkMeshViewer clitkCommon)
380     set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshViewer)
381   endif(CLITK_EXPERIMENTAL)
382   #=========================================================
383
384
385   #=========================================================
386   WRAP_GGO(clitkDice_GGO_C clitkDice.ggo)
387   add_executable(clitkDice clitkDice.cxx ${clitkDice_GGO_C})
388   target_link_libraries(clitkDice clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES} )
389   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDice)
390
391   WRAP_GGO(clitkDicomRTPlan2Gate_GGO_C clitkDicomRTPlan2Gate.ggo)
392   add_executable(clitkDicomRTPlan2Gate clitkDicomRTPlan2Gate.cxx clitkDicomRTPlan2Gate_ggo.c)
393   target_link_libraries(clitkDicomRTPlan2Gate clitkCommon)
394   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomRTPlan2Gate)
395   #=========================================================
396
397
398   install(TARGETS ${TOOLS_INSTALL} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
399
400 endif(CLITK_BUILD_TOOLS)