]> Creatis software - clitk.git/blob - tools/CMakeLists.txt
Add the tool clitkRelativePositionDataBaseAnalyzer
[clitk.git] / tools / CMakeLists.txt
1 #=========================================================
2 INCLUDE(${PROJECT_SOURCE_DIR}/cmake/common.cmake)
3 #=========================================================
4
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})
8
9 WRAP_GGO(clitkImageConvert_GGO_C clitkImageConvert.ggo)
10 ADD_LIBRARY(clitkImageConvertLib clitkImageConvertGenericFilter.cxx ${clitkImageConvert_GGO_C})
11
12 WRAP_GGO(clitkBinarizeImage_GGO_C clitkBinarizeImage.ggo)
13 ADD_LIBRARY(clitkBinarizeImageLib clitkBinarizeImageGenericFilter.cxx ${clitkBinarizeImage_GGO_C})
14
15 WRAP_GGO(clitkImageArithm_GGO_C clitkImageArithm.ggo)
16 ADD_LIBRARY(clitkImageArithmImageLib clitkImageArithmGenericFilter.cxx ${clitkImageArithm_GGO_C})
17
18 WRAP_GGO(clitkResampleImage_GGO_C clitkResampleImage.ggo)
19 ADD_LIBRARY(clitkResampleImageLib clitkResampleImageGenericFilter.cxx ${clitkResampleImage_GGO_C})
20
21 WRAP_GGO(clitkMIP_GGO_C clitkMIP.ggo)
22 ADD_LIBRARY(clitkMIPLib clitkMIPGenericFilter.cxx ${clitkMIP_GGO_C})
23
24 WRAP_GGO(clitkMedianImageFilter_GGO_C clitkMedianImageFilter.ggo)
25 ADD_LIBRARY(clitkMedianImageFilterLib clitkMedianImageGenericFilter.cxx ${clitkMedianImageFilter_GGO_C})
26
27 IF (CLITK_BUILD_TOOLS)
28   WRAP_GGO(clitkDicomInfo_GGO_C clitkDicomInfo.ggo)
29   ADD_EXECUTABLE(clitkDicomInfo clitkDicomInfo.cxx ${clitkDicomInfo_GGO_C})
30   TARGET_LINK_LIBRARIES(clitkDicomInfo clitkCommon ${ITK_LIBRARIES})
31   SET(TOOLS_INSTALL clitkDicomInfo)
32
33   WRAP_GGO(clitkDicom2Image_GGO_C clitkDicom2Image.ggo)
34   ADD_EXECUTABLE(clitkDicom2Image clitkDicom2Image.cxx ${clitkDicom2Image_GGO_C})
35   TARGET_LINK_LIBRARIES(clitkDicom2Image clitkCommon ${ITK_LIBRARIES})
36   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicom2Image)
37
38   WRAP_GGO(clitkDicomWave2Text_GGO_C clitkDicomWave2Text.ggo)
39   ADD_EXECUTABLE(clitkDicomWave2Text clitkDicomWave2Text.cxx ${clitkDicomWave2Text_GGO_C})
40   TARGET_LINK_LIBRARIES(clitkDicomWave2Text clitkCommon ${ITK_LIBRARIES})
41   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomWave2Text)
42
43   WRAP_GGO(clitkImageInfo_GGO_C clitkImageInfo.ggo)
44   ADD_EXECUTABLE(clitkImageInfo clitkImageInfo.cxx ${clitkImageInfo_GGO_C})
45   TARGET_LINK_LIBRARIES(clitkImageInfo clitkCommon ${ITK_LIBRARIES})
46   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageInfo)
47
48   ADD_EXECUTABLE(clitkImageConvert clitkImageConvert.cxx)
49   TARGET_LINK_LIBRARIES(clitkImageConvert clitkImageConvertLib clitkCommon ${ITK_LIBRARIES})
50   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageConvert)
51
52   ADD_EXECUTABLE(clitkBinarizeImage clitkBinarizeImage.cxx)
53   TARGET_LINK_LIBRARIES(clitkBinarizeImage clitkBinarizeImageLib clitkCommon ${ITK_LIBRARIES})
54   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBinarizeImage)
55
56   WRAP_GGO(clitkVFResample_GGO_C clitkVFResample.ggo)
57   ADD_EXECUTABLE(clitkVFResample clitkVFResample.cxx clitkVFResampleGenericFilter.cxx ${clitkVFResample_GGO_C})
58   TARGET_LINK_LIBRARIES(clitkVFResample clitkCommon ${ITK_LIBRARIES})
59   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVFResample)
60
61   WRAP_GGO(clitkImageCreate_GGO_C clitkImageCreate.ggo)
62   ADD_EXECUTABLE(clitkImageCreate clitkImageCreate.cxx ${clitkImageCreate_GGO_C})
63   TARGET_LINK_LIBRARIES(clitkImageCreate clitkCommon  ${ITK_LIBRARIES})
64   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageCreate)
65
66   WRAP_GGO(clitkZeroVF_GGO_C clitkZeroVF.ggo)
67   ADD_EXECUTABLE(clitkZeroVF clitkZeroVF.cxx ${clitkZeroVF_GGO_C} clitkZeroVFGenericFilter.cxx)
68   TARGET_LINK_LIBRARIES(clitkZeroVF clitkCommon  ${ITK_LIBRARIES})
69   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkZeroVF)
70
71   WRAP_GGO(clitkImageExtractLine_GGO_C clitkImageExtractLine.ggo)
72   ADD_EXECUTABLE(clitkImageExtractLine clitkImageExtractLine.cxx ${clitkImageExtractLine_GGO_C})
73   TARGET_LINK_LIBRARIES(clitkImageExtractLine clitkCommon  ${ITK_LIBRARIES})
74   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageExtractLine)
75
76   WRAP_GGO(clitkSplitImage_GGO_C clitkSplitImage.ggo)
77   ADD_EXECUTABLE(clitkSplitImage clitkSplitImage.cxx clitkSplitImageGenericFilter.cxx ${clitkSplitImage_GGO_C})
78   TARGET_LINK_LIBRARIES(clitkSplitImage clitkCommon ${ITK_LIBRARIES} )
79   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSplitImage)
80
81   WRAP_GGO(clitkVFMerge_GGO_C clitkVFMerge.ggo)
82   ADD_EXECUTABLE(clitkVFMerge clitkVFMerge.cxx ${clitkVFMerge_GGO_C})
83   TARGET_LINK_LIBRARIES(clitkVFMerge clitkCommon ${ITK_LIBRARIES})
84   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVFMerge)
85
86   WRAP_GGO(clitkWriteDicomSeries_GGO_C clitkWriteDicomSeries.ggo)
87   ADD_EXECUTABLE(clitkWriteDicomSeries clitkWriteDicomSeries.cxx ${clitkWriteDicomSeries_GGO_C})
88   TARGET_LINK_LIBRARIES(clitkWriteDicomSeries clitkCommon ${ITK_LIBRARIES} )
89   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkWriteDicomSeries)
90
91   WRAP_GGO(clitkAverageTemporalDimension_GGO_C clitkAverageTemporalDimension.ggo)
92   ADD_EXECUTABLE(clitkAverageTemporalDimension clitkAverageTemporalDimension.cxx ${clitkAverageTemporalDimension_GGO_C})
93   TARGET_LINK_LIBRARIES(clitkAverageTemporalDimension clitkCommon ${ITK_LIBRARIES} )
94   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAverageTemporalDimension)
95
96   WRAP_GGO(clitkMedianTemporalDimension_GGO_C clitkMedianTemporalDimension.ggo)
97   ADD_EXECUTABLE(clitkMedianTemporalDimension clitkMedianTemporalDimension.cxx
98       ${clitkMedianTemporalDimension_GGO_C})
99   TARGET_LINK_LIBRARIES(clitkMedianTemporalDimension clitkCommon ${ITK_LIBRARIES} )
100   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMedianTemporalDimension)
101
102   WRAP_GGO(clitkWarpImage_GGO_C clitkWarpImage.ggo)
103   ADD_EXECUTABLE(clitkWarpImage clitkWarpImage.cxx ${clitkWarpImage_GGO_C} clitkWarpImageGenericFilter.cxx)
104   TARGET_LINK_LIBRARIES(clitkWarpImage clitkCommon ${ITK_LIBRARIES})
105   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkWarpImage)
106
107   WRAP_GGO(clitkInvertVF_GGO_C clitkInvertVF.ggo)
108   ADD_EXECUTABLE(clitkInvertVF clitkInvertVF.cxx ${clitkInvertVF_GGO_C})
109   TARGET_LINK_LIBRARIES(clitkInvertVF clitkCommon ${ITK_LIBRARIES} )
110   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkInvertVF)
111
112   WRAP_GGO(clitkAffineTransform_GGO_C clitkAffineTransform.ggo)
113   ADD_EXECUTABLE(clitkAffineTransform clitkAffineTransform.cxx ${clitkAffineTransform_GGO_C})
114   TARGET_LINK_LIBRARIES(clitkAffineTransform clitkCommon ${ITK_LIBRARIES} )
115   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicom2Image)
116
117   WRAP_GGO(clitkSetBackground_GGO_C clitkSetBackground.ggo)
118   ADD_EXECUTABLE(clitkSetBackground clitkSetBackground.cxx clitkSetBackgroundGenericFilter.cxx ${clitkSetBackground_GGO_C})
119   TARGET_LINK_LIBRARIES(clitkSetBackground clitkCommon ${ITK_LIBRARIES})
120   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSetBackground)
121
122   WRAP_GGO(clitkGuerreroVentilation_GGO_C clitkGuerreroVentilation.ggo)
123   ADD_EXECUTABLE(clitkGuerreroVentilation clitkGuerreroVentilation.cxx clitkGuerreroVentilationGenericFilter.cxx ${clitkGuerreroVentilation_GGO_C})
124   TARGET_LINK_LIBRARIES(clitkGuerreroVentilation clitkCommon ${ITK_LIBRARIES})
125   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGuerreroVentilation)
126
127   WRAP_GGO(clitkGammaIndex_GGO_C clitkGammaIndex.ggo)
128   ADD_EXECUTABLE(clitkGammaIndex clitkGammaIndex.cxx ${clitkGammaIndex_GGO_C})
129   TARGET_LINK_LIBRARIES(clitkGammaIndex vtkCommon vtkFiltering vtkGraphics vtkIO vtkImaging)
130   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGammaIndex)
131
132   ADD_EXECUTABLE(clitkImageArithm clitkImageArithm.cxx)
133   TARGET_LINK_LIBRARIES(clitkImageArithm clitkImageArithmImageLib clitkCommon ${ITK_LIBRARIES} )
134   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageArithm)
135
136   WRAP_GGO(clitkUnsharpMask_GGO_C clitkUnsharpMask.ggo)
137   ADD_EXECUTABLE(clitkUnsharpMask clitkUnsharpMask.cxx ${clitkUnsharpMask_GGO_C})
138   TARGET_LINK_LIBRARIES(clitkUnsharpMask clitkCommon ${ITK_LIBRARIES} ) 
139   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkUnsharpMask)
140
141   WRAP_GGO(clitkFooImage_GGO_C clitkFooImage.ggo)
142   ADD_EXECUTABLE(clitkFooImage clitkFooImage.cxx ${clitkFooImage_GGO_C})
143   TARGET_LINK_LIBRARIES(clitkFooImage clitkCommon ${ITK_LIBRARIES} ) 
144   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkFooImage)
145
146   #WRAP_GGO(clitkMedianImageFilter_GGO_C clitkMedianImageFilter.ggo)
147   #ADD_EXECUTABLE(clitkMedianImageFilter clitkMedianImageFilter.cxx ${clitkMedianImageFilter_GGO_C})
148   #TARGET_LINK_LIBRARIES(clitkMedianImageFilter clitkMedianImageFilterLib clitkCommon ${ITK_LIBRARIES})
149   #SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMedianImageFilter)
150
151   ADD_EXECUTABLE(clitkResampleImage clitkResampleImage.cxx)
152   TARGET_LINK_LIBRARIES(clitkResampleImage clitkResampleImageLib clitkCommon ${ITK_LIBRARIES})
153   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkResampleImage)
154
155   WRAP_GGO(clitkMinMaxMask_GGO_C clitkMinMaxMask.ggo)
156   ADD_EXECUTABLE(clitkMinMaxMask clitkMinMaxMask.cxx ${clitkMinMaxMask_GGO_C})
157   TARGET_LINK_LIBRARIES(clitkMinMaxMask clitkCommon ${ITK_LIBRARIES}  )
158   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMinMaxMask)
159
160   WRAP_GGO(clitkAutoCrop_GGO_C clitkAutoCrop.ggo)
161   ADD_EXECUTABLE(clitkAutoCrop clitkAutoCrop.cxx ${clitkAutoCrop_GGO_C})
162   TARGET_LINK_LIBRARIES(clitkAutoCrop clitkCommon ${ITK_LIBRARIES} )
163   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAutoCrop)
164
165   WRAP_GGO(clitkDicomRTStruct2Image_GGO_C clitkDicomRTStruct2Image.ggo)
166   ADD_EXECUTABLE(clitkDicomRTStruct2Image clitkDicomRTStruct2Image.cxx ${clitkDicomRTStruct2Image_GGO_C})
167   TARGET_LINK_LIBRARIES(clitkDicomRTStruct2Image clitkDicomRTStruct clitkCommon ${ITK_LIBRARIES} )
168   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomRTStruct2Image)
169
170   # WRAP_GGO(clitkImage2DicomRTStruct_GGO_C clitkImage2DicomRTStruct.ggo)
171   # ADD_EXECUTABLE(clitkImage2DicomRTStruct clitkImage2DicomRTStruct.cxx ${clitkImage2DicomRTStruct_GGO_C})
172   # TARGET_LINK_LIBRARIES(clitkImage2DicomRTStruct clitkDicomRTStruct clitkCommon ${ITK_LIBRARIES} )
173   # SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImage2DicomRTStruct)
174
175   WRAP_GGO(clitkImageLog_GGO_C clitkImageLog.ggo)
176   ADD_EXECUTABLE(clitkImageLog clitkImageLog.cxx ${clitkImageLog_GGO_C})
177   TARGET_LINK_LIBRARIES(clitkImageLog  ${ITK_LIBRARIES} clitkCommon)
178   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageLog)
179
180   WRAP_GGO(clitkFilter_GGO_C clitkFilter.ggo)
181   ADD_EXECUTABLE(clitkFilter clitkFilter.cxx clitkFilterGenericFilter.cxx ${clitkFilter_GGO_C})
182   TARGET_LINK_LIBRARIES(clitkFilter ${ITK_LIBRARIES} clitkCommon)
183   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkFilter)
184
185   WRAP_GGO(clitkConeBeamProjectImage_GGO_C clitkConeBeamProjectImage.ggo)
186   ADD_EXECUTABLE(clitkConeBeamProjectImage clitkConeBeamProjectImage.cxx clitkConeBeamProjectImageGenericFilter.cxx ${clitkConeBeamProjectImage_GGO_C})
187   TARGET_LINK_LIBRARIES(clitkConeBeamProjectImage  ${ITK_LIBRARIES} clitkCommon )
188   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkConeBeamProjectImage)
189
190   WRAP_GGO(clitkComposeVF_GGO_C clitkComposeVF.ggo)
191   ADD_EXECUTABLE(clitkComposeVF clitkComposeVFGenericFilter.cxx clitkComposeVF.cxx ${clitkComposeVF_GGO_C})
192   TARGET_LINK_LIBRARIES(clitkComposeVF ${ITK_LIBRARIES} clitkCommon)
193   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkComposeVF)
194
195   WRAP_GGO(clitkMergeSequence_GGO_C clitkMergeSequence.ggo)
196   ADD_EXECUTABLE(clitkMergeSequence clitkMergeSequence.cxx clitkMergeSequenceGenericFilter.cxx ${clitkMergeSequence_GGO_C})
197   TARGET_LINK_LIBRARIES(clitkMergeSequence ${ITK_LIBRARIES} clitkCommon)
198   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMergeSequence)
199
200   WRAP_GGO(clitkBackProjectImage_GGO_C clitkBackProjectImage.ggo)
201   ADD_EXECUTABLE(clitkBackProjectImage clitkBackProjectImage.cxx clitkBackProjectImageGenericFilter.cxx ${clitkBackProjectImage_GGO_C})
202   TARGET_LINK_LIBRARIES(clitkBackProjectImage ${ITK_LIBRARIES} clitkCommon )
203   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBackProjectImage)
204
205   ADD_EXECUTABLE(clitkCropImage clitkCropImage.cxx ${clitkCropImage_GGO_C})
206   TARGET_LINK_LIBRARIES(clitkCropImage clitkCropImageLib clitkCommon ${ITK_LIBRARIES})
207   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkCropImage)
208
209   # WRAP_GGO(clitkExtractSlice_GGO_C clitkExtractSlice.ggo)
210   # ADD_EXECUTABLE(clitkExtractSlice clitkExtractSlice.cxx clitkExtractSliceGenericFilter.cxx ${clitkExtractSlice_GGO_C})
211   # TARGET_LINK_LIBRARIES(clitkExtractSlice clitkCommon ${ITK_LIBRARIES})
212   #SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkExtractSlice)
213   
214   WRAP_GGO(clitkFlipImage_GGO_C clitkFlipImage.ggo)
215   ADD_EXECUTABLE(clitkFlipImage clitkFlipImage.cxx clitkFlipImageGenericFilter.cxx ${clitkFlipImage_GGO_C})
216   TARGET_LINK_LIBRARIES(clitkFlipImage clitkCommon ${ITK_LIBRARIES})
217   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkFlipImage)
218
219   WRAP_GGO(clitkMirrorPadImage_GGO_C clitkMirrorPadImage.ggo)
220   ADD_EXECUTABLE(clitkMirrorPadImage clitkMirrorPadImage.cxx clitkMirrorPadImageGenericFilter.cxx ${clitkMirrorPadImage_GGO_C})
221   TARGET_LINK_LIBRARIES(clitkMirrorPadImage clitkCommon ${ITK_LIBRARIES})
222   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMirrorPadImage)
223
224   WRAP_GGO(clitkImageMoment_GGO_C clitkImageMoment.ggo)
225   ADD_EXECUTABLE(clitkImageMoment clitkImageMoment.cxx clitkImageMomentGenericFilter.cxx ${clitkImageMoment_GGO_C})
226   TARGET_LINK_LIBRARIES(clitkImageMoment clitkCommon ${ITK_LIBRARIES})
227   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicom2Image)
228
229   WRAP_GGO(clitkImageStatistics_GGO_C clitkImageStatistics.ggo)
230   ADD_EXECUTABLE(clitkImageStatistics clitkImageStatistics.cxx clitkImageStatisticsGenericFilter.cxx ${clitkImageStatistics_GGO_C})
231   TARGET_LINK_LIBRARIES(clitkImageStatistics clitkCommon ${ITK_LIBRARIES})
232   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageStatistics)
233
234   WRAP_GGO(clitkSetOrigin_GGO_C clitkSetOrigin.ggo)
235   ADD_EXECUTABLE(clitkSetOrigin clitkSetOrigin.cxx clitkSetOriginGenericFilter.cxx ${clitkSetOrigin_GGO_C})
236   TARGET_LINK_LIBRARIES(clitkSetOrigin clitkCommon ${ITK_LIBRARIES} )
237   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSetOrigin)
238     
239   WRAP_GGO(clitkGetOrigin_GGO_C clitkGetOrigin.ggo)
240   ADD_EXECUTABLE(clitkGetOrigin clitkGetOrigin.cxx clitkGetOriginGenericFilter.cxx ${clitkGetOrigin_GGO_C})
241   TARGET_LINK_LIBRARIES(clitkGetOrigin clitkCommon ${ITK_LIBRARIES} )
242   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGetOrigin)
243
244   WRAP_GGO(clitkGetDirection_GGO_C clitkGetDirection.ggo)
245   ADD_EXECUTABLE(clitkGetDirection clitkGetDirection.cxx clitkGetDirectionGenericFilter.cxx ${clitkGetDirection_GGO_C})
246   TARGET_LINK_LIBRARIES(clitkGetDirection clitkCommon ${ITK_LIBRARIES})
247   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGetDirection)
248
249   WRAP_GGO(clitkSetDirection_GGO_C clitkSetDirection.ggo)
250   ADD_EXECUTABLE(clitkSetDirection clitkSetDirection.cxx clitkSetDirectionGenericFilter.cxx ${clitkSetDirection_GGO_C})
251   TARGET_LINK_LIBRARIES(clitkSetDirection clitkCommon ${ITK_LIBRARIES})
252   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSetDirection)
253
254   WRAP_GGO(clitkGetSize_GGO_C clitkGetSize.ggo)
255   ADD_EXECUTABLE(clitkGetSize  clitkGetSize.cxx clitkGetSizeGenericFilter.cxx ${clitkGetSize_GGO_C})
256   TARGET_LINK_LIBRARIES(clitkGetSize  clitkCommon   ${ITK_LIBRARIES})
257   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGetSize)
258
259   WRAP_GGO(clitkGetSpacing_GGO_C clitkGetSpacing.ggo)
260   ADD_EXECUTABLE(clitkGetSpacing  clitkGetSpacing.cxx clitkGetSpacingGenericFilter.cxx ${clitkGetSpacing_GGO_C})
261   TARGET_LINK_LIBRARIES(clitkGetSpacing  clitkCommon   ${ITK_LIBRARIES})
262   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGetSpacing)
263
264   WRAP_GGO(clitkSetSpacing_GGO_C clitkSetSpacing.ggo)
265   ADD_EXECUTABLE(clitkSetSpacing  clitkSetSpacing.cxx clitkSetSpacingGenericFilter.cxx ${clitkSetSpacing_GGO_C})
266   TARGET_LINK_LIBRARIES(clitkSetSpacing  clitkCommon   ${ITK_LIBRARIES})
267   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicom2Image)
268
269   WRAP_GGO(clitkCombineImage_GGO_C clitkCombineImage.ggo)
270   ADD_EXECUTABLE(clitkCombineImage clitkCombineImage.cxx clitkCombineImageGenericFilter.cxx ${clitkCombineImage_GGO_C})
271   TARGET_LINK_LIBRARIES(clitkCombineImage clitkCommon ${ITK_LIBRARIES})
272   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkCombineImage)
273
274   WRAP_GGO(clitkPermuteAxes_GGO_C clitkPermuteAxes.ggo)
275   ADD_EXECUTABLE(clitkPermuteAxes clitkPermuteAxes.cxx clitkPermuteAxesGenericFilter.cxx ${clitkPermuteAxes_GGO_C})
276   TARGET_LINK_LIBRARIES(clitkPermuteAxes clitkCommon ${ITK_LIBRARIES})
277   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkPermuteAxes)
278
279   WRAP_GGO(clitkChangeImageOrientation_GGO_C clitkChangeImageOrientation.ggo)
280   ADD_EXECUTABLE(clitkChangeImageOrientation clitkChangeImageOrientation.cxx clitkChangeImageOrientationGenericFilter.cxx ${clitkChangeImageOrientation_GGO_C})
281   TARGET_LINK_LIBRARIES(clitkChangeImageOrientation clitkCommon ${ITK_LIBRARIES})
282   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkChangeImageOrientation)
283
284   WRAP_GGO(clitkVFConvert_GGO_C clitkVFConvert.ggo)
285   ADD_EXECUTABLE(clitkVFConvert clitkVFConvert.cxx clitkVFConvertGenericFilter.cxx ${clitkVFConvert_GGO_C})
286   TARGET_LINK_LIBRARIES(clitkVFConvert ${ITK_LIBRARIES} clitkCommon )
287   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVFConvert)
288
289   WRAP_GGO(clitkImageToVectorImage_GGO_C clitkImageToVectorImage.ggo)
290   ADD_EXECUTABLE(clitkImageToVectorImage  clitkImageToVectorImage.cxx clitkImageToVectorImageGenericFilter.cxx ${clitkImageToVectorImage_GGO_C})
291   TARGET_LINK_LIBRARIES(clitkImageToVectorImage  clitkCommon   ${ITK_LIBRARIES})
292   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageToVectorImage)
293
294   WRAP_GGO(clitkVectorImageToImage_GGO_C clitkVectorImageToImage.ggo)
295   ADD_EXECUTABLE(clitkVectorImageToImage  clitkVectorImageToImage.cxx clitkVectorImageToImageGenericFilter.cxx ${clitkVectorImageToImage_GGO_C})
296   TARGET_LINK_LIBRARIES(clitkVectorImageToImage  clitkCommon   ${ITK_LIBRARIES})
297   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVectorImageToImage)
298
299   WRAP_GGO(clitkBSplineCoefficientsToValues_GGO_C clitkBSplineCoefficientsToValues.ggo)
300   ADD_EXECUTABLE(clitkBSplineCoefficientsToValues  clitkBSplineCoefficientsToValues.cxx clitkBSplineCoefficientsToValuesGenericFilter.cxx ${clitkBSplineCoefficientsToValues_GGO_C})
301   TARGET_LINK_LIBRARIES(clitkBSplineCoefficientsToValues clitkCommon ${ITK_LIBRARIES})
302   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBSplineCoefficientsToValues)
303
304   WRAP_GGO(clitkValuesToBSplineCoefficients_GGO_C clitkValuesToBSplineCoefficients.ggo)
305   ADD_EXECUTABLE(clitkValuesToBSplineCoefficients  clitkValuesToBSplineCoefficients.cxx clitkValuesToBSplineCoefficientsGenericFilter.cxx ${clitkValuesToBSplineCoefficients_GGO_C})
306   TARGET_LINK_LIBRARIES(clitkValuesToBSplineCoefficients clitkCommon ${ITK_LIBRARIES})
307   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkValuesToBSplineCoefficients)
308
309   ADD_EXECUTABLE(clitkMIP clitkMIP.cxx clitkMIPGenericFilter.cxx)
310   TARGET_LINK_LIBRARIES(clitkMIP clitkMIPLib clitkCommon ${ITK_LIBRARIES})
311   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMIP)
312
313   WRAP_GGO(clitkRelativePosition_GGO_C clitkRelativePosition.ggo)
314   ADD_EXECUTABLE(clitkRelativePosition  clitkRelativePosition.cxx ${clitkRelativePosition_GGO_C})
315   TARGET_LINK_LIBRARIES(clitkRelativePosition clitkCommon ${ITK_LIBRARIES})
316   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkRelativePosition)
317
318   WRAP_GGO(clitkLabelImageOverlapMeasure_GGO_C clitkLabelImageOverlapMeasure.ggo)
319   ADD_EXECUTABLE(clitkLabelImageOverlapMeasure clitkLabelImageOverlapMeasure.cxx ${clitkLabelImageOverlapMeasure_GGO_C})
320   TARGET_LINK_LIBRARIES(clitkLabelImageOverlapMeasure clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES} )
321   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkLabelImageOverlapMeasure)
322
323   WRAP_GGO(clitkRelativePositionAnalyzer_GGO_C clitkRelativePositionAnalyzer.ggo)
324   ADD_EXECUTABLE(clitkRelativePositionAnalyzer clitkRelativePositionAnalyzer.cxx ${clitkRelativePositionAnalyzer_GGO_C})
325   TARGET_LINK_LIBRARIES(clitkRelativePositionAnalyzer clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES})
326   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkRelativePositionAnalyzer)
327
328   WRAP_GGO(clitkRelativePositionDataBaseAnalyzer_GGO_C clitkRelativePositionDataBaseAnalyzer.ggo)
329   ADD_EXECUTABLE(clitkRelativePositionDataBaseAnalyzer ../itk/clitkRelativePositionDataBase.cxx clitkRelativePositionDataBaseAnalyzer.cxx ${clitkRelativePositionDataBaseAnalyzer_GGO_C})
330   TARGET_LINK_LIBRARIES(clitkRelativePositionDataBaseAnalyzer clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES})
331   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkRelativePositionDataBaseAnalyzer)
332
333   WRAP_GGO(clitkRelativePositionDataBaseBuilder_GGO_C clitkRelativePositionDataBaseBuilder.ggo)
334   ADD_EXECUTABLE(clitkRelativePositionDataBaseBuilder clitkRelativePositionDataBaseBuilder.cxx ${clitkRelativePositionDataBaseBuilder_GGO_C})
335   TARGET_LINK_LIBRARIES(clitkRelativePositionDataBaseBuilder clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES})
336   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkRelativePositionDataBaseBuilder)
337
338   WRAP_GGO(clitkTransformLandmarks_GGO_C clitkTransformLandmarks.ggo)
339   ADD_EXECUTABLE(clitkTransformLandmarks clitkTransformLandmarks.cxx ${clitkTransformLandmarks_GGO_C})
340   TARGET_LINK_LIBRARIES(clitkTransformLandmarks clitkCommon ${ITK_LIBRARIES})
341   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkTransformLandmarks)
342
343   WRAP_GGO(clitkLineProfile_GGO_C clitkLineProfile.ggo)
344   ADD_EXECUTABLE(clitkLineProfile clitkLineProfile.cxx clitkLineProfileGenericFilter.cxx ${clitkLineProfile_GGO_C})
345   TARGET_LINK_LIBRARIES(clitkLineProfile clitkCommon ${ITK_LIBRARIES})
346   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkLineProfile)
347
348   ADD_EXECUTABLE(clitkMakeSphereImage clitkMakeSphereImage.cxx) # clitkLineProfileGenericFilter.cxx ${clitkLineProfile_GGO_C})
349   TARGET_LINK_LIBRARIES(clitkMakeSphereImage clitkCommon ${ITK_LIBRARIES})
350   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMakeSphereImage)
351
352   WRAP_GGO(clitkJacobianImage_GGO_C clitkJacobianImage.ggo)
353   ADD_EXECUTABLE(clitkJacobianImage clitkJacobianImage.cxx clitkJacobianImageGenericFilter.cxx ${clitkJacobianImage_GGO_C})
354   TARGET_LINK_LIBRARIES(clitkJacobianImage clitkCommon ${ITK_LIBRARIES})
355   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkJacobianImage)
356   
357   WRAP_GGO(clitkPadImage_GGO_C clitkPadImage.ggo)
358   ADD_EXECUTABLE(clitkPadImage clitkPadImage.cxx clitkPadImageGenericFilter.cxx ${clitkPadImage_GGO_C})
359   TARGET_LINK_LIBRARIES(clitkPadImage clitkCommon ${ITK_LIBRARIES})
360   SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkPadImage)
361
362   IF(CLITK_EXPERIMENTAL)
363
364     WRAP_GGO(clitkBinaryImageToMesh_GGO_C clitkBinaryImageToMesh.ggo)
365     ADD_EXECUTABLE(clitkBinaryImageToMesh clitkBinaryImageToMesh.cxx ${clitkBinaryImageToMesh_GGO_C})
366     TARGET_LINK_LIBRARIES(clitkBinaryImageToMesh ${ITK_LIBRARIES} vtkCommon vtkRendering)
367     SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBinaryImageToMesh)
368
369     WRAP_GGO(clitkMeshToBinaryImage_GGO_C clitkMeshToBinaryImage.ggo)
370     ADD_EXECUTABLE(clitkMeshToBinaryImage clitkMeshToBinaryImage.cxx ${clitkMeshToBinaryImage_GGO_C})
371     IF(VTK_VERSION VERSION_LESS 5.8.0)
372       TARGET_LINK_LIBRARIES(clitkMeshToBinaryImage clitkCommon ${ITK_LIBRARIES} vtkHybrid vtkIO)
373     ELSE(VTK_VERSION VERSION_LESS 5.8.0)
374       TARGET_LINK_LIBRARIES(clitkMeshToBinaryImage clitkCommon ${ITK_LIBRARIES} ${VTK_LIBRARIES})
375     ENDIF(VTK_VERSION VERSION_LESS 5.8.0)
376     SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshToBinaryImage)
377
378     WRAP_GGO(clitkMeshViewer_GGO_C clitkMeshViewer.ggo)
379     ADD_EXECUTABLE(clitkMeshViewer clitkMeshViewer.cxx ${clitkMeshViewer_GGO_C})
380     TARGET_LINK_LIBRARIES(clitkMeshViewer vtkCommon vtkRendering)
381     SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshViewer)
382   ENDIF(CLITK_EXPERIMENTAL)
383
384   SET_TARGET_PROPERTIES(${TOOLS_INSTALL} PROPERTIES INSTALL_RPATH "${VTK_DIR}:${ITK_DIR}" )  
385   INSTALL (TARGETS ${TOOLS_INSTALL} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE)
386
387 ENDIF(CLITK_BUILD_TOOLS)
388