]> Creatis software - clitk.git/blob - tools/CMakeLists.txt
Merge branch 'master' into clitkImage2Dicom
[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(clitkImage2DicomSeries_GGO_C clitkImage2DicomSeries.ggo)
100   add_executable(clitkImage2DicomSeries clitkImage2DicomSeries.cxx ${clitkImage2DicomSeries_GGO_C})
101   target_link_libraries(clitkImage2DicomSeries clitkCommon )
102   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImage2DicomSeries)
103
104   WRAP_GGO(clitkMedianTemporalDimension_GGO_C clitkMedianTemporalDimension.ggo)
105   add_executable(clitkMedianTemporalDimension clitkMedianTemporalDimension.cxx
106     ${clitkMedianTemporalDimension_GGO_C})
107   target_link_libraries(clitkMedianTemporalDimension clitkCommon )
108   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMedianTemporalDimension)
109
110   WRAP_GGO(clitkWarpImage_GGO_C clitkWarpImage.ggo)
111   add_executable(clitkWarpImage clitkWarpImage.cxx ${clitkWarpImage_GGO_C} clitkWarpImageGenericFilter.cxx)
112   target_link_libraries(clitkWarpImage clitkCommon)
113   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkWarpImage)
114
115   WRAP_GGO(clitkInvertVF_GGO_C clitkInvertVF.ggo)
116   add_executable(clitkInvertVF clitkInvertVF.cxx ${clitkInvertVF_GGO_C})
117   target_link_libraries(clitkInvertVF clitkCommon)
118   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkInvertVF)
119
120   WRAP_GGO(clitkAffineTransform_GGO_C clitkAffineTransform.ggo)
121   add_executable(clitkAffineTransform clitkAffineTransform.cxx ${clitkAffineTransform_GGO_C})
122   target_link_libraries(clitkAffineTransform clitkCommon )
123   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAffineTransform)
124
125   WRAP_GGO(clitkElastixTransformToMatrix_GGO_C clitkElastixTransformToMatrix.ggo)
126   add_executable(clitkElastixTransformToMatrix clitkElastixTransformToMatrix.cxx ${clitkElastixTransformToMatrix_GGO_C})
127   target_link_libraries(clitkElastixTransformToMatrix clitkCommon )
128   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkElastixTransformToMatrix)
129
130   WRAP_GGO(clitkMatrixToElastixTransform_GGO_C clitkMatrixToElastixTransform.ggo)
131   add_executable(clitkMatrixToElastixTransform clitkMatrixToElastixTransform.cxx ${clitkMatrixToElastixTransform_GGO_C})
132   target_link_libraries(clitkMatrixToElastixTransform clitkCommon )
133   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMatrixToElastixTransform)
134
135   WRAP_GGO(clitkMatrixMultiply_GGO_C clitkMatrixMultiply.ggo)
136   add_executable(clitkMatrixMultiply clitkMatrixMultiply.cxx ${clitkMatrixMultiply_GGO_C})
137   target_link_libraries(clitkMatrixMultiply clitkCommon )
138   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMatrixMultiply)
139
140   WRAP_GGO(clitkMatrixInverse_GGO_C clitkMatrixInverse.ggo)
141   add_executable(clitkMatrixInverse clitkMatrixInverse.cxx ${clitkMatrixInverse_GGO_C})
142   target_link_libraries(clitkMatrixInverse clitkCommon )
143   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMatrixInverse)
144
145   WRAP_GGO(clitkSetBackground_GGO_C clitkSetBackground.ggo)
146   add_executable(clitkSetBackground clitkSetBackground.cxx clitkSetBackgroundGenericFilter.cxx ${clitkSetBackground_GGO_C})
147   target_link_libraries(clitkSetBackground clitkCommon)
148   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSetBackground)
149
150   WRAP_GGO(clitkGammaIndex_GGO_C clitkGammaIndex.ggo)
151   add_executable(clitkGammaIndex clitkGammaIndex.cxx ${clitkGammaIndex_GGO_C})
152   target_link_libraries(clitkGammaIndex clitkCommon)
153   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGammaIndex)
154
155   add_executable(clitkImageArithm clitkImageArithm.cxx)
156   target_link_libraries(clitkImageArithm clitkImageArithmImageLib clitkCommon )
157   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageArithm)
158
159   add_executable(clitkVectorArithm clitkVectorArithm.cxx)
160   target_link_libraries(clitkVectorArithm clitkVectorArithmLib clitkCommon )
161   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVectorArithm)
162
163   WRAP_GGO(clitkUnsharpMask_GGO_C clitkUnsharpMask.ggo)
164   add_executable(clitkUnsharpMask clitkUnsharpMask.cxx ${clitkUnsharpMask_GGO_C})
165   target_link_libraries(clitkUnsharpMask clitkCommon )
166   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkUnsharpMask)
167
168   WRAP_GGO(clitkMedianImageFilter_GGO_C clitkMedianImageFilter.ggo)
169   add_executable(clitkMedianImageFilter clitkMedianImageFilter.cxx ${clitkMedianImageFilter_GGO_C})
170   target_link_libraries(clitkMedianImageFilter clitkMedianImageFilterLib clitkCommon)
171   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMedianImageFilter)
172
173   add_executable(clitkResampleImage clitkResampleImage.cxx)
174   target_link_libraries(clitkResampleImage clitkResampleImageLib clitkCommon)
175   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkResampleImage)
176
177   WRAP_GGO(clitkMinMaxMask_GGO_C clitkMinMaxMask.ggo)
178   add_executable(clitkMinMaxMask clitkMinMaxMask.cxx ${clitkMinMaxMask_GGO_C})
179   target_link_libraries(clitkMinMaxMask clitkCommon  )
180   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMinMaxMask)
181
182   WRAP_GGO(clitkAutoCrop_GGO_C clitkAutoCrop.ggo)
183   add_executable(clitkAutoCrop clitkAutoCrop.cxx ${clitkAutoCrop_GGO_C})
184   target_link_libraries(clitkAutoCrop clitkCommon )
185   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAutoCrop)
186
187   WRAP_GGO(clitkDicomRTStruct2Image_GGO_C clitkDicomRTStruct2Image.ggo)
188   add_executable(clitkDicomRTStruct2Image clitkDicomRTStruct2Image.cxx ${clitkDicomRTStruct2Image_GGO_C})
189   target_link_libraries(clitkDicomRTStruct2Image clitkDicomRTStruct)
190   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomRTStruct2Image)
191
192   #if(CLITK_USE_SYSTEM_GDCM)
193     WRAP_GGO(clitkImage2DicomRTStruct_GGO_C clitkImage2DicomRTStruct.ggo)
194     add_executable(clitkImage2DicomRTStruct clitkImage2DicomRTStruct.cxx ${clitkImage2DicomRTStruct_GGO_C})
195     target_link_libraries(clitkImage2DicomRTStruct clitkDicomRTStruct)
196   #endif()
197
198   WRAP_GGO(clitkComposeVF_GGO_C clitkComposeVF.ggo)
199   add_executable(clitkComposeVF clitkComposeVFGenericFilter.cxx clitkComposeVF.cxx ${clitkComposeVF_GGO_C})
200   target_link_libraries(clitkComposeVF clitkCommon  )
201   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkComposeVF)
202
203   WRAP_GGO(clitkMergeSequence_GGO_C clitkMergeSequence.ggo)
204   add_executable(clitkMergeSequence clitkMergeSequence.cxx clitkMergeSequenceGenericFilter.cxx ${clitkMergeSequence_GGO_C})
205   target_link_libraries(clitkMergeSequence clitkCommon)
206   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMergeSequence)
207
208   WRAP_GGO(clitkBackProjectImage_GGO_C clitkBackProjectImage.ggo)
209   add_executable(clitkBackProjectImage clitkBackProjectImage.cxx clitkBackProjectImageGenericFilter.cxx ${clitkBackProjectImage_GGO_C})
210   target_link_libraries(clitkBackProjectImage clitkCommon)
211   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBackProjectImage)
212
213   add_executable(clitkCropImage clitkCropImage.cxx ${clitkCropImage_GGO_C})
214   target_link_libraries(clitkCropImage clitkCropImageLib clitkCommon)
215   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkCropImage)
216
217   # WRAP_GGO(clitkExtractSlice_GGO_C clitkExtractSlice.ggo)
218   # add_executable(clitkExtractSlice clitkExtractSlice.cxx clitkExtractSliceGenericFilter.cxx ${clitkExtractSlice_GGO_C})
219   # target_link_libraries(clitkExtractSlice clitkCommon)
220   #set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkExtractSlice)
221
222   WRAP_GGO(clitkFlipImage_GGO_C clitkFlipImage.ggo)
223   add_executable(clitkFlipImage clitkFlipImage.cxx clitkFlipImageGenericFilter.cxx ${clitkFlipImage_GGO_C})
224   target_link_libraries(clitkFlipImage clitkCommon)
225   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkFlipImage)
226
227   WRAP_GGO(clitkMirrorPadImage_GGO_C clitkMirrorPadImage.ggo)
228   add_executable(clitkMirrorPadImage clitkMirrorPadImage.cxx clitkMirrorPadImageGenericFilter.cxx ${clitkMirrorPadImage_GGO_C})
229   target_link_libraries(clitkMirrorPadImage clitkCommon)
230   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMirrorPadImage)
231
232   WRAP_GGO(clitkImageMoment_GGO_C clitkImageMoment.ggo)
233   add_executable(clitkImageMoment clitkImageMoment.cxx clitkImageMomentGenericFilter.cxx ${clitkImageMoment_GGO_C})
234   target_link_libraries(clitkImageMoment clitkCommon)
235   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageMoment)
236
237   WRAP_GGO(clitkImageStatistics_GGO_C clitkImageStatistics.ggo)
238   add_executable(clitkImageStatistics clitkImageStatistics.cxx clitkImageStatisticsGenericFilter.cxx ${clitkImageStatistics_GGO_C})
239   target_link_libraries(clitkImageStatistics clitkCommon)
240   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageStatistics)
241
242   WRAP_GGO(clitkVFConvert_GGO_C clitkVFConvert.ggo)
243   add_executable(clitkVFConvert clitkVFConvert.cxx clitkVFConvertGenericFilter.cxx ${clitkVFConvert_GGO_C})
244   target_link_libraries(clitkVFConvert clitkCommon )
245   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVFConvert)
246
247   WRAP_GGO(clitkImageToVectorImage_GGO_C clitkImageToVectorImage.ggo)
248   add_executable(clitkImageToVectorImage  clitkImageToVectorImage.cxx clitkImageToVectorImageGenericFilter.cxx ${clitkImageToVectorImage_GGO_C})
249   target_link_libraries(clitkImageToVectorImage  clitkCommon)
250   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageToVectorImage)
251
252   WRAP_GGO(clitkVectorImageToImage_GGO_C clitkVectorImageToImage.ggo)
253   add_executable(clitkVectorImageToImage  clitkVectorImageToImage.cxx clitkVectorImageToImageGenericFilter.cxx ${clitkVectorImageToImage_GGO_C})
254   target_link_libraries(clitkVectorImageToImage  clitkCommon)
255   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVectorImageToImage)
256   
257   WRAP_GGO(clitkNVectorImageTo4DImage_GGO_C clitkNVectorImageTo4DImage.ggo)
258   add_executable(clitkNVectorImageTo4DImage  clitkNVectorImageTo4DImage.cxx clitkNVectorImageTo4DImageGenericFilter.cxx ${clitkNVectorImageTo4DImage_GGO_C})
259   target_link_libraries(clitkNVectorImageTo4DImage  clitkCommon)
260   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkNVectorImageTo4DImage)
261
262   WRAP_GGO(clitk4DImageToNVectorImage_GGO_C clitk4DImageToNVectorImage.ggo)
263   add_executable(clitk4DImageToNVectorImage  clitk4DImageToNVectorImage.cxx clitk4DImageToNVectorImageGenericFilter.cxx ${clitk4DImageToNVectorImage_GGO_C})
264   target_link_libraries(clitk4DImageToNVectorImage  clitkCommon)
265   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitk4DImageToNVectorImage)
266
267   add_executable(clitkMIP clitkMIP.cxx clitkMIPGenericFilter.cxx)
268   target_link_libraries(clitkMIP clitkMIPLib clitkCommon)
269   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMIP)
270
271   WRAP_GGO(clitkSum_GGO_C clitkSum.ggo)
272   add_executable(clitkSum clitkSum.cxx ${clitkSum_GGO_C})
273   target_link_libraries(clitkSum clitkCommon)
274   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSum)
275
276   WRAP_GGO(clitkTransformLandmarks_GGO_C clitkTransformLandmarks.ggo)
277   add_executable(clitkTransformLandmarks clitkTransformLandmarks.cxx ${clitkTransformLandmarks_GGO_C})
278   target_link_libraries(clitkTransformLandmarks clitkCommon)
279   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkTransformLandmarks)
280
281   WRAP_GGO(clitkMaskLandmarks_GGO_C clitkMaskLandmarks.ggo)
282   add_executable(clitkMaskLandmarks clitkMaskLandmarks.cxx ${clitkMaskLandmarks_GGO_C})
283   target_link_libraries(clitkMaskLandmarks clitkCommon)
284   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMaskLandmarks)
285
286   WRAP_GGO(clitkJacobianImage_GGO_C clitkJacobianImage.ggo)
287   add_executable(clitkJacobianImage clitkJacobianImage.cxx clitkJacobianImageGenericFilter.cxx ${clitkJacobianImage_GGO_C})
288   target_link_libraries(clitkJacobianImage clitkCommon)
289   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkJacobianImage)
290
291   WRAP_GGO(clitkPadImage_GGO_C clitkPadImage.ggo)
292   add_executable(clitkPadImage clitkPadImage.cxx clitkPadImageGenericFilter.cxx ${clitkPadImage_GGO_C})
293   target_link_libraries(clitkPadImage clitkCommon)
294   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkPadImage)
295
296   WRAP_GGO(clitkCatImage_GGO_C clitkCatImage.ggo)
297   add_executable(clitkCatImage clitkCatImage.cxx ${clitkCatImage_GGO_C})
298   target_link_libraries(clitkCatImage clitkCommon)
299   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkCatImage)
300
301   WRAP_GGO(clitkAnisotropicDiffusion_GGO_C clitkAnisotropicDiffusion.ggo)
302   add_executable(clitkAnisotropicDiffusion clitkAnisotropicDiffusion.cxx
303     clitkAnisotropicDiffusionGenericFilter.cxx
304     ${clitkAnisotropicDiffusion_GGO_C})
305   target_link_libraries(clitkAnisotropicDiffusion clitkCommon)
306   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAnisotropicDiffusion)
307
308   WRAP_GGO(clitkChangeImageInfo_GGO_C clitkChangeImageInfo.ggo)
309   add_executable(clitkChangeImageInfo clitkChangeImageInfo.cxx
310     clitkChangeImageInfoGenericFilter.cxx
311     ${clitkChangeImageInfo_GGO_C})
312   target_link_libraries(clitkChangeImageInfo clitkCommon)
313   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkChangeImageInfo)
314
315   WRAP_GGO(clitkMergeAsciiDoseActor_GGO_C clitkMergeAsciiDoseActor.ggo)
316   add_executable(clitkMergeAsciiDoseActor clitkMergeAsciiDoseActor.cxx ${clitkMergeAsciiDoseActor_GGO_C})
317   target_link_libraries(clitkMergeAsciiDoseActor ITKCommon clitkCommon)
318   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMergeAsciiDoseActor)
319
320   WRAP_GGO(clitkImageUncertainty_GGO_C clitkImageUncertainty.ggo)
321   add_executable(clitkImageUncertainty clitkImageUncertainty.cxx clitkImageUncertainty_ggo.c)
322   target_link_libraries(clitkImageUncertainty clitkCommon ${ITK_LIBRARIES})
323   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageUncertainty)
324
325   WRAP_GGO(clitkNormalizeImageFilter_GGO_C clitkNormalizeImageFilter.ggo)
326   add_executable(clitkNormalizeImageFilter clitkNormalizeImageFilter.cxx ${clitkNormalizeImageFilter_GGO_C})
327   target_link_libraries(clitkNormalizeImageFilter clitkCommon )
328   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkNormalizeImageFilter)
329
330   WRAP_GGO(clitkImageGradientMagnitude_GGO_C clitkImageGradientMagnitude.ggo)
331   add_executable(clitkImageGradientMagnitude clitkImageGradientMagnitude.cxx ${clitkImageGradientMagnitude_GGO_C})
332   target_link_libraries(clitkImageGradientMagnitude clitkCommon )
333   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageGradientMagnitude)
334
335   WRAP_GGO(clitkImageLaplacian_GGO_C clitkImageLaplacian.ggo)
336   add_executable(clitkImageLaplacian clitkImageLaplacian.cxx ${clitkImageLaplacian_GGO_C})
337   target_link_libraries(clitkImageLaplacian clitkCommon )
338   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageLaplacian)
339
340   WRAP_GGO(clitkImageIntensityWindowing_GGO_C clitkImageIntensityWindowing.ggo)
341   add_executable(clitkImageIntensityWindowing clitkImageIntensityWindowing.cxx ${clitkImageIntensityWindowing_GGO_C})
342   target_link_libraries(clitkImageIntensityWindowing clitkCommon )
343   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageIntensityWindowing)
344
345   WRAP_GGO(clitkBlurImage_GGO_C clitkBlurImage.ggo)
346   add_executable(clitkBlurImage clitkBlurImage.cxx ${clitkBlurImage_GGO_C})
347   target_link_libraries(clitkBlurImage clitkCommon )
348   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBlurImage)
349
350   #=========================================================
351   option(CLITK_USE_ROOT "Build experimental tools using root" OFF)
352   if (CLITK_USE_ROOT)
353     find_package(ROOT REQUIRED)
354     if(ROOT_FOUND)
355       message(STATUS "ROOT found : ${ROOT_LIBRARY_DIR} ${ROOT_INCLUDE_DIR} ${ROOT_LIBRARIES}")
356     else(ROOT_FOUND)
357       message(FATAL_ERROR
358         "Cannot build without ROOT.  Please set ROOTSYS environement variable.")
359     endif(ROOT_FOUND)
360     include_directories(${ROOT_INCLUDE_DIR})
361     link_directories(${ROOT_LIBRARY_DIR})
362     WRAP_GGO(clitkMergeRootFiles_GGO_C clitkMergeRootFiles.ggo)
363     add_executable(clitkMergeRootFiles clitkMergeRootFiles.cxx GateMergeManager.cc ${clitkMergeRootFiles_GGO_C})
364     target_link_libraries(clitkMergeRootFiles ${ROOT_LIBRARIES})
365     set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMergeRootFiles)
366   endif()
367   #=========================================================
368
369
370   #=========================================================
371   if(CLITK_EXPERIMENTAL)
372     WRAP_GGO(clitkBinaryImageToMesh_GGO_C clitkBinaryImageToMesh.ggo)
373     add_executable(clitkBinaryImageToMesh clitkBinaryImageToMesh.cxx ${clitkBinaryImageToMesh_GGO_C})
374     target_link_libraries(clitkBinaryImageToMesh clitkCommon)
375     set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBinaryImageToMesh)
376
377     WRAP_GGO(clitkMeshToBinaryImage_GGO_C clitkMeshToBinaryImage.ggo)
378     add_executable(clitkMeshToBinaryImage clitkMeshToBinaryImage.cxx ${clitkMeshToBinaryImage_GGO_C})
379     target_link_libraries(clitkMeshToBinaryImage clitkCommon)
380     set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshToBinaryImage)
381
382     WRAP_GGO(clitkMeshViewer_GGO_C clitkMeshViewer.ggo)
383     add_executable(clitkMeshViewer clitkMeshViewer.cxx ${clitkMeshViewer_GGO_C})
384     target_link_libraries(clitkMeshViewer clitkCommon)
385     set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshViewer)
386   endif(CLITK_EXPERIMENTAL)
387   #=========================================================
388
389
390   #=========================================================
391   WRAP_GGO(clitkDice_GGO_C clitkDice.ggo)
392   add_executable(clitkDice clitkDice.cxx ${clitkDice_GGO_C})
393   target_link_libraries(clitkDice clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES} )
394   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDice)
395
396   WRAP_GGO(clitkDicomRTPlan2Gate_GGO_C clitkDicomRTPlan2Gate.ggo)
397   add_executable(clitkDicomRTPlan2Gate clitkDicomRTPlan2Gate.cxx clitkDicomRTPlan2Gate_ggo.c)
398   target_link_libraries(clitkDicomRTPlan2Gate clitkCommon)
399   set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomRTPlan2Gate)
400   #=========================================================
401
402
403   install(TARGETS ${TOOLS_INSTALL} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
404
405 endif(CLITK_BUILD_TOOLS)