1 #=========================================================
2 INCLUDE(${PROJECT_SOURCE_DIR}/cmake/common.cmake)
3 #=========================================================
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})
9 WRAP_GGO(clitkImageConvert_GGO_C clitkImageConvert.ggo)
10 ADD_LIBRARY(clitkImageConvertLib clitkImageConvertGenericFilter.cxx ${clitkImageConvert_GGO_C})
12 WRAP_GGO(clitkBinarizeImage_GGO_C clitkBinarizeImage.ggo)
13 ADD_LIBRARY(clitkBinarizeImageLib clitkBinarizeImageGenericFilter.cxx ${clitkBinarizeImage_GGO_C})
15 WRAP_GGO(clitkImageArithm_GGO_C clitkImageArithm.ggo)
16 ADD_LIBRARY(clitkImageArithmImageLib clitkImageArithmGenericFilter.cxx ${clitkImageArithm_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 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)
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)
38 WRAP_GGO(clitkImageInfo_GGO_C clitkImageInfo.ggo)
39 ADD_EXECUTABLE(clitkImageInfo clitkImageInfo.cxx ${clitkImageInfo_GGO_C})
40 TARGET_LINK_LIBRARIES(clitkImageInfo clitkCommon ${ITK_LIBRARIES})
41 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicom2Image)
43 ADD_EXECUTABLE(clitkImageConvert clitkImageConvert.cxx)
44 TARGET_LINK_LIBRARIES(clitkImageConvert clitkImageConvertLib clitkCommon ${ITK_LIBRARIES})
45 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageConvert)
47 ADD_EXECUTABLE(clitkBinarizeImage clitkBinarizeImage.cxx)
48 TARGET_LINK_LIBRARIES(clitkBinarizeImage clitkBinarizeImageLib clitkCommon ${ITK_LIBRARIES})
49 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBinarizeImage)
51 WRAP_GGO(clitkVFResample_GGO_C clitkVFResample.ggo)
52 ADD_EXECUTABLE(clitkVFResample clitkVFResample.cxx clitkVFResampleGenericFilter.cxx ${clitkVFResample_GGO_C})
53 TARGET_LINK_LIBRARIES(clitkVFResample clitkCommon ${ITK_LIBRARIES})
54 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVFResample)
56 WRAP_GGO(clitkImageCreate_GGO_C clitkImageCreate.ggo)
57 ADD_EXECUTABLE(clitkImageCreate clitkImageCreate.cxx ${clitkImageCreate_GGO_C})
58 TARGET_LINK_LIBRARIES(clitkImageCreate clitkCommon ${ITK_LIBRARIES})
59 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageCreate)
61 WRAP_GGO(clitkZeroVF_GGO_C clitkZeroVF.ggo)
62 ADD_EXECUTABLE(clitkZeroVF clitkZeroVF.cxx ${clitkZeroVF_GGO_C} clitkZeroVFGenericFilter.cxx)
63 TARGET_LINK_LIBRARIES(clitkZeroVF clitkCommon ${ITK_LIBRARIES})
64 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkZeroVF)
66 WRAP_GGO(clitkImageExtractLine_GGO_C clitkImageExtractLine.ggo)
67 ADD_EXECUTABLE(clitkImageExtractLine clitkImageExtractLine.cxx ${clitkImageExtractLine_GGO_C})
68 TARGET_LINK_LIBRARIES(clitkImageExtractLine clitkCommon ${ITK_LIBRARIES})
69 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageExtractLine)
71 WRAP_GGO(clitkSplitImage_GGO_C clitkSplitImage.ggo)
72 ADD_EXECUTABLE(clitkSplitImage clitkSplitImage.cxx clitkSplitImageGenericFilter.cxx ${clitkSplitImage_GGO_C})
73 TARGET_LINK_LIBRARIES(clitkSplitImage clitkCommon ${ITK_LIBRARIES} )
74 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSplitImage)
76 WRAP_GGO(clitkVFMerge_GGO_C clitkVFMerge.ggo)
77 ADD_EXECUTABLE(clitkVFMerge clitkVFMerge.cxx ${clitkVFMerge_GGO_C})
78 TARGET_LINK_LIBRARIES(clitkVFMerge clitkCommon ${ITK_LIBRARIES})
79 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVFMerge)
81 WRAP_GGO(clitkWriteDicomSeries_GGO_C clitkWriteDicomSeries.ggo)
82 ADD_EXECUTABLE(clitkWriteDicomSeries clitkWriteDicomSeries.cxx ${clitkWriteDicomSeries_GGO_C})
83 TARGET_LINK_LIBRARIES(clitkWriteDicomSeries clitkCommon ${ITK_LIBRARIES} )
84 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkWriteDicomSeries)
86 WRAP_GGO(clitkAverageTemporalDimension_GGO_C clitkAverageTemporalDimension.ggo)
87 ADD_EXECUTABLE(clitkAverageTemporalDimension clitkAverageTemporalDimension.cxx ${clitkAverageTemporalDimension_GGO_C})
88 TARGET_LINK_LIBRARIES(clitkAverageTemporalDimension clitkCommon ${ITK_LIBRARIES} )
89 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAverageTemporalDimension)
91 WRAP_GGO(clitkMedianTemporalDimension_GGO_C clitkMedianTemporalDimension.ggo)
92 ADD_EXECUTABLE(clitkMedianTemporalDimension clitkMedianTemporalDimension.cxx
93 ${clitkMedianTemporalDimension_GGO_C})
94 TARGET_LINK_LIBRARIES(clitkMedianTemporalDimension clitkCommon ${ITK_LIBRARIES} )
95 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMedianTemporalDimension)
97 WRAP_GGO(clitkWarpImage_GGO_C clitkWarpImage.ggo)
98 ADD_EXECUTABLE(clitkWarpImage clitkWarpImage.cxx ${clitkWarpImage_GGO_C} clitkWarpImageGenericFilter.cxx)
99 TARGET_LINK_LIBRARIES(clitkWarpImage clitkCommon ${ITK_LIBRARIES})
100 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkWarpImage)
102 WRAP_GGO(clitkInvertVF_GGO_C clitkInvertVF.ggo)
103 ADD_EXECUTABLE(clitkInvertVF clitkInvertVF.cxx ${clitkInvertVF_GGO_C})
104 TARGET_LINK_LIBRARIES(clitkInvertVF clitkCommon ${ITK_LIBRARIES} )
105 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkInvertVF)
107 WRAP_GGO(clitkAffineTransform_GGO_C clitkAffineTransform.ggo)
108 ADD_EXECUTABLE(clitkAffineTransform clitkAffineTransform.cxx ${clitkAffineTransform_GGO_C})
109 TARGET_LINK_LIBRARIES(clitkAffineTransform clitkCommon ${ITK_LIBRARIES} )
110 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicom2Image)
112 WRAP_GGO(clitkSetBackground_GGO_C clitkSetBackground.ggo)
113 ADD_EXECUTABLE(clitkSetBackground clitkSetBackground.cxx clitkSetBackgroundGenericFilter.cxx ${clitkSetBackground_GGO_C})
114 TARGET_LINK_LIBRARIES(clitkSetBackground clitkCommon ${ITK_LIBRARIES})
115 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSetBackground)
117 WRAP_GGO(clitkGuerreroVentilation_GGO_C clitkGuerreroVentilation.ggo)
118 ADD_EXECUTABLE(clitkGuerreroVentilation clitkGuerreroVentilation.cxx clitkGuerreroVentilationGenericFilter.cxx ${clitkGuerreroVentilation_GGO_C})
119 TARGET_LINK_LIBRARIES(clitkGuerreroVentilation clitkCommon ${ITK_LIBRARIES})
120 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGuerreroVentilation)
122 WRAP_GGO(clitkGammaIndex_GGO_C clitkGammaIndex.ggo)
123 ADD_EXECUTABLE(clitkGammaIndex clitkGammaIndex.cxx ${clitkGammaIndex_GGO_C})
124 TARGET_LINK_LIBRARIES(clitkGammaIndex vtkCommon vtkFiltering vtkGraphics vtkIO vtkImaging)
125 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGammaIndex)
127 ADD_EXECUTABLE(clitkImageArithm clitkImageArithm.cxx)
128 TARGET_LINK_LIBRARIES(clitkImageArithm clitkImageArithmImageLib clitkCommon ${ITK_LIBRARIES} )
129 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageArithm)
131 WRAP_GGO(clitkUnsharpMask_GGO_C clitkUnsharpMask.ggo)
132 ADD_EXECUTABLE(clitkUnsharpMask clitkUnsharpMask.cxx ${clitkUnsharpMask_GGO_C})
133 TARGET_LINK_LIBRARIES(clitkUnsharpMask clitkCommon ${ITK_LIBRARIES} )
134 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkUnsharpMask)
136 WRAP_GGO(clitkFooImage_GGO_C clitkFooImage.ggo)
137 ADD_EXECUTABLE(clitkFooImage clitkFooImage.cxx ${clitkFooImage_GGO_C})
138 TARGET_LINK_LIBRARIES(clitkFooImage clitkCommon ${ITK_LIBRARIES} )
139 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkFooImage)
141 #WRAP_GGO(clitkMedianImageFilter_GGO_C clitkMedianImageFilter.ggo)
142 #ADD_EXECUTABLE(clitkMedianImageFilter clitkMedianImageFilter.cxx ${clitkMedianImageFilter_GGO_C})
143 #TARGET_LINK_LIBRARIES(clitkMedianImageFilter clitkMedianImageFilterLib clitkCommon ${ITK_LIBRARIES})
144 #SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMedianImageFilter)
146 ADD_EXECUTABLE(clitkResampleImage clitkResampleImage.cxx)
147 TARGET_LINK_LIBRARIES(clitkResampleImage clitkResampleImageLib clitkCommon ${ITK_LIBRARIES})
148 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkResampleImage)
150 WRAP_GGO(clitkMinMaxMask_GGO_C clitkMinMaxMask.ggo)
151 ADD_EXECUTABLE(clitkMinMaxMask clitkMinMaxMask.cxx ${clitkMinMaxMask_GGO_C})
152 TARGET_LINK_LIBRARIES(clitkMinMaxMask clitkCommon ${ITK_LIBRARIES} )
153 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMinMaxMask)
155 WRAP_GGO(clitkAutoCrop_GGO_C clitkAutoCrop.ggo)
156 ADD_EXECUTABLE(clitkAutoCrop clitkAutoCrop.cxx ${clitkAutoCrop_GGO_C})
157 TARGET_LINK_LIBRARIES(clitkAutoCrop clitkCommon ${ITK_LIBRARIES} )
158 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAutoCrop)
160 WRAP_GGO(clitkDicomRTStruct2BinaryImage_GGO_C clitkDicomRTStruct2BinaryImage.ggo)
161 ADD_EXECUTABLE(clitkDicomRTStruct2BinaryImage clitkDicomRTStruct2BinaryImage.cxx ${clitkDicomRTStruct2BinaryImage_GGO_C})
162 TARGET_LINK_LIBRARIES(clitkDicomRTStruct2BinaryImage clitkDicomRTStruct clitkCommon ${ITK_LIBRARIES} )
163 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomRTStruct2BinaryImage)
165 WRAP_GGO(clitkImageLog_GGO_C clitkImageLog.ggo)
166 ADD_EXECUTABLE(clitkImageLog clitkImageLog.cxx ${clitkImageLog_GGO_C})
167 TARGET_LINK_LIBRARIES(clitkImageLog ${ITK_LIBRARIES} clitkCommon)
168 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageLog)
170 WRAP_GGO(clitkFilter_GGO_C clitkFilter.ggo)
171 ADD_EXECUTABLE(clitkFilter clitkFilter.cxx clitkFilterGenericFilter.cxx ${clitkFilter_GGO_C})
172 TARGET_LINK_LIBRARIES(clitkFilter ${ITK_LIBRARIES} clitkCommon)
173 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkFilter)
175 WRAP_GGO(clitkConeBeamProjectImage_GGO_C clitkConeBeamProjectImage.ggo)
176 ADD_EXECUTABLE(clitkConeBeamProjectImage clitkConeBeamProjectImage.cxx clitkConeBeamProjectImageGenericFilter.cxx ${clitkConeBeamProjectImage_GGO_C})
177 TARGET_LINK_LIBRARIES(clitkConeBeamProjectImage ${ITK_LIBRARIES} clitkCommon )
178 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkConeBeamProjectImage)
180 WRAP_GGO(clitkComposeVF_GGO_C clitkComposeVF.ggo)
181 ADD_EXECUTABLE(clitkComposeVF clitkComposeVFGenericFilter.cxx clitkComposeVF.cxx ${clitkComposeVF_GGO_C})
182 TARGET_LINK_LIBRARIES(clitkComposeVF ${ITK_LIBRARIES} clitkCommon)
183 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkComposeVF)
185 WRAP_GGO(clitkMergeSequence_GGO_C clitkMergeSequence.ggo)
186 ADD_EXECUTABLE(clitkMergeSequence clitkMergeSequence.cxx clitkMergeSequenceGenericFilter.cxx ${clitkMergeSequence_GGO_C})
187 TARGET_LINK_LIBRARIES(clitkMergeSequence ${ITK_LIBRARIES} clitkCommon)
188 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMergeSequence)
190 WRAP_GGO(clitkBackProjectImage_GGO_C clitkBackProjectImage.ggo)
191 ADD_EXECUTABLE(clitkBackProjectImage clitkBackProjectImage.cxx clitkBackProjectImageGenericFilter.cxx ${clitkBackProjectImage_GGO_C})
192 TARGET_LINK_LIBRARIES(clitkBackProjectImage ${ITK_LIBRARIES} clitkCommon )
193 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBackProjectImage)
195 ADD_EXECUTABLE(clitkCropImage clitkCropImage.cxx ${clitkCropImage_GGO_C})
196 TARGET_LINK_LIBRARIES(clitkCropImage clitkCropImageLib clitkCommon ${ITK_LIBRARIES})
197 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkCropImage)
199 # WRAP_GGO(clitkExtractSlice_GGO_C clitkExtractSlice.ggo)
200 # ADD_EXECUTABLE(clitkExtractSlice clitkExtractSlice.cxx clitkExtractSliceGenericFilter.cxx ${clitkExtractSlice_GGO_C})
201 # TARGET_LINK_LIBRARIES(clitkExtractSlice clitkCommon ${ITK_LIBRARIES})
202 #SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkExtractSlice)
204 WRAP_GGO(clitkFlipImage_GGO_C clitkFlipImage.ggo)
205 ADD_EXECUTABLE(clitkFlipImage clitkFlipImage.cxx clitkFlipImageGenericFilter.cxx ${clitkFlipImage_GGO_C})
206 TARGET_LINK_LIBRARIES(clitkFlipImage clitkCommon ${ITK_LIBRARIES})
207 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkFlipImage)
209 WRAP_GGO(clitkMirrorPadImage_GGO_C clitkMirrorPadImage.ggo)
210 ADD_EXECUTABLE(clitkMirrorPadImage clitkMirrorPadImage.cxx clitkMirrorPadImageGenericFilter.cxx ${clitkMirrorPadImage_GGO_C})
211 TARGET_LINK_LIBRARIES(clitkMirrorPadImage clitkCommon ${ITK_LIBRARIES})
212 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMirrorPadImage)
214 WRAP_GGO(clitkImageMoment_GGO_C clitkImageMoment.ggo)
215 ADD_EXECUTABLE(clitkImageMoment clitkImageMoment.cxx clitkImageMomentGenericFilter.cxx ${clitkImageMoment_GGO_C})
216 TARGET_LINK_LIBRARIES(clitkImageMoment clitkCommon ${ITK_LIBRARIES})
217 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicom2Image)
219 WRAP_GGO(clitkImageStatistics_GGO_C clitkImageStatistics.ggo)
220 ADD_EXECUTABLE(clitkImageStatistics clitkImageStatistics.cxx clitkImageStatisticsGenericFilter.cxx ${clitkImageStatistics_GGO_C})
221 TARGET_LINK_LIBRARIES(clitkImageStatistics clitkCommon ${ITK_LIBRARIES})
222 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageStatistics)
224 WRAP_GGO(clitkSetOrigin_GGO_C clitkSetOrigin.ggo)
225 ADD_EXECUTABLE(clitkSetOrigin clitkSetOrigin.cxx clitkSetOriginGenericFilter.cxx ${clitkSetOrigin_GGO_C})
226 TARGET_LINK_LIBRARIES(clitkSetOrigin clitkCommon ${ITK_LIBRARIES} )
227 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSetOrigin)
229 WRAP_GGO(clitkGetOrigin_GGO_C clitkGetOrigin.ggo)
230 ADD_EXECUTABLE(clitkGetOrigin clitkGetOrigin.cxx clitkGetOriginGenericFilter.cxx ${clitkGetOrigin_GGO_C})
231 TARGET_LINK_LIBRARIES(clitkGetOrigin clitkCommon ${ITK_LIBRARIES} )
232 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGetOrigin)
234 WRAP_GGO(clitkGetDirection_GGO_C clitkGetDirection.ggo)
235 ADD_EXECUTABLE(clitkGetDirection clitkGetDirection.cxx clitkGetDirectionGenericFilter.cxx ${clitkGetDirection_GGO_C})
236 TARGET_LINK_LIBRARIES(clitkGetDirection clitkCommon ${ITK_LIBRARIES})
237 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGetDirection)
239 WRAP_GGO(clitkSetDirection_GGO_C clitkSetDirection.ggo)
240 ADD_EXECUTABLE(clitkSetDirection clitkSetDirection.cxx clitkSetDirectionGenericFilter.cxx ${clitkSetDirection_GGO_C})
241 TARGET_LINK_LIBRARIES(clitkSetDirection clitkCommon ${ITK_LIBRARIES})
242 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkSetDirection)
244 WRAP_GGO(clitkGetSize_GGO_C clitkGetSize.ggo)
245 ADD_EXECUTABLE(clitkGetSize clitkGetSize.cxx clitkGetSizeGenericFilter.cxx ${clitkGetSize_GGO_C})
246 TARGET_LINK_LIBRARIES(clitkGetSize clitkCommon ${ITK_LIBRARIES})
247 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGetSize)
249 WRAP_GGO(clitkGetSpacing_GGO_C clitkGetSpacing.ggo)
250 ADD_EXECUTABLE(clitkGetSpacing clitkGetSpacing.cxx clitkGetSpacingGenericFilter.cxx ${clitkGetSpacing_GGO_C})
251 TARGET_LINK_LIBRARIES(clitkGetSpacing clitkCommon ${ITK_LIBRARIES})
252 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkGetSpacing)
254 WRAP_GGO(clitkSetSpacing_GGO_C clitkSetSpacing.ggo)
255 ADD_EXECUTABLE(clitkSetSpacing clitkSetSpacing.cxx clitkSetSpacingGenericFilter.cxx ${clitkSetSpacing_GGO_C})
256 TARGET_LINK_LIBRARIES(clitkSetSpacing clitkCommon ${ITK_LIBRARIES})
257 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicom2Image)
259 WRAP_GGO(clitkCombineImage_GGO_C clitkCombineImage.ggo)
260 ADD_EXECUTABLE(clitkCombineImage clitkCombineImage.cxx clitkCombineImageGenericFilter.cxx ${clitkCombineImage_GGO_C})
261 TARGET_LINK_LIBRARIES(clitkCombineImage clitkCommon ${ITK_LIBRARIES})
262 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkCombineImage)
264 WRAP_GGO(clitkPermuteAxes_GGO_C clitkPermuteAxes.ggo)
265 ADD_EXECUTABLE(clitkPermuteAxes clitkPermuteAxes.cxx clitkPermuteAxesGenericFilter.cxx ${clitkPermuteAxes_GGO_C})
266 TARGET_LINK_LIBRARIES(clitkPermuteAxes clitkCommon ${ITK_LIBRARIES})
267 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkPermuteAxes)
269 WRAP_GGO(clitkChangeImageOrientation_GGO_C clitkChangeImageOrientation.ggo)
270 ADD_EXECUTABLE(clitkChangeImageOrientation clitkChangeImageOrientation.cxx clitkChangeImageOrientationGenericFilter.cxx ${clitkChangeImageOrientation_GGO_C})
271 TARGET_LINK_LIBRARIES(clitkChangeImageOrientation clitkCommon ${ITK_LIBRARIES})
272 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkChangeImageOrientation)
274 WRAP_GGO(clitkVFConvert_GGO_C clitkVFConvert.ggo)
275 ADD_EXECUTABLE(clitkVFConvert clitkVFConvert.cxx clitkVFConvertGenericFilter.cxx ${clitkVFConvert_GGO_C})
276 TARGET_LINK_LIBRARIES(clitkVFConvert ${ITK_LIBRARIES} clitkCommon )
277 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVFConvert)
279 WRAP_GGO(clitkImageToVectorImage_GGO_C clitkImageToVectorImage.ggo)
280 ADD_EXECUTABLE(clitkImageToVectorImage clitkImageToVectorImage.cxx clitkImageToVectorImageGenericFilter.cxx ${clitkImageToVectorImage_GGO_C})
281 TARGET_LINK_LIBRARIES(clitkImageToVectorImage clitkCommon ${ITK_LIBRARIES})
282 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkImageToVectorImage)
284 WRAP_GGO(clitkVectorImageToImage_GGO_C clitkVectorImageToImage.ggo)
285 ADD_EXECUTABLE(clitkVectorImageToImage clitkVectorImageToImage.cxx clitkVectorImageToImageGenericFilter.cxx ${clitkVectorImageToImage_GGO_C})
286 TARGET_LINK_LIBRARIES(clitkVectorImageToImage clitkCommon ${ITK_LIBRARIES})
287 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkVectorImageToImage)
289 WRAP_GGO(clitkBSplineCoefficientsToValues_GGO_C clitkBSplineCoefficientsToValues.ggo)
290 ADD_EXECUTABLE(clitkBSplineCoefficientsToValues clitkBSplineCoefficientsToValues.cxx clitkBSplineCoefficientsToValuesGenericFilter.cxx ${clitkBSplineCoefficientsToValues_GGO_C})
291 TARGET_LINK_LIBRARIES(clitkBSplineCoefficientsToValues clitkCommon ${ITK_LIBRARIES})
292 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBSplineCoefficientsToValues)
294 WRAP_GGO(clitkValuesToBSplineCoefficients_GGO_C clitkValuesToBSplineCoefficients.ggo)
295 ADD_EXECUTABLE(clitkValuesToBSplineCoefficients clitkValuesToBSplineCoefficients.cxx clitkValuesToBSplineCoefficientsGenericFilter.cxx ${clitkValuesToBSplineCoefficients_GGO_C})
296 TARGET_LINK_LIBRARIES(clitkValuesToBSplineCoefficients clitkCommon ${ITK_LIBRARIES})
297 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkValuesToBSplineCoefficients)
299 ADD_EXECUTABLE(clitkMIP clitkMIP.cxx clitkMIPGenericFilter.cxx)
300 TARGET_LINK_LIBRARIES(clitkMIP clitkMIPLib clitkCommon ${ITK_LIBRARIES})
301 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMIP)
303 WRAP_GGO(clitkRelativePosition_GGO_C clitkRelativePosition.ggo)
304 ADD_EXECUTABLE(clitkRelativePosition clitkRelativePosition.cxx ${clitkRelativePosition_GGO_C})
305 TARGET_LINK_LIBRARIES(clitkRelativePosition clitkCommon ${ITK_LIBRARIES})
306 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkRelativePosition)
308 WRAP_GGO(clitkTransformLandmarks_GGO_C clitkTransformLandmarks.ggo)
309 ADD_EXECUTABLE(clitkTransformLandmarks clitkTransformLandmarks.cxx ${clitkTransformLandmarks_GGO_C})
310 TARGET_LINK_LIBRARIES(clitkTransformLandmarks clitkCommon ${ITK_LIBRARIES})
311 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkTransformLandmarks)
313 WRAP_GGO(clitkLineProfile_GGO_C clitkLineProfile.ggo)
314 ADD_EXECUTABLE(clitkLineProfile clitkLineProfile.cxx clitkLineProfileGenericFilter.cxx ${clitkLineProfile_GGO_C})
315 TARGET_LINK_LIBRARIES(clitkLineProfile clitkCommon ${ITK_LIBRARIES})
316 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkLineProfile)
318 ADD_EXECUTABLE(clitkMakeSphereImage clitkMakeSphereImage.cxx) # clitkLineProfileGenericFilter.cxx ${clitkLineProfile_GGO_C})
319 TARGET_LINK_LIBRARIES(clitkMakeSphereImage clitkCommon ${ITK_LIBRARIES})
320 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMakeSphereImage)
322 WRAP_GGO(clitkJacobianImage_GGO_C clitkJacobianImage.ggo)
323 ADD_EXECUTABLE(clitkJacobianImage clitkJacobianImage.cxx clitkJacobianImageGenericFilter.cxx ${clitkJacobianImage_GGO_C})
324 TARGET_LINK_LIBRARIES(clitkJacobianImage clitkCommon ${ITK_LIBRARIES})
325 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkJacobianImage)
327 WRAP_GGO(clitkPadImage_GGO_C clitkPadImage.ggo)
328 ADD_EXECUTABLE(clitkPadImage clitkPadImage.cxx ${clitkPadImage_GGO_C})
329 TARGET_LINK_LIBRARIES(clitkPadImage clitkCommon ${ITK_LIBRARIES})
330 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkPadImage)
332 IF(CLITK_EXPERIMENTAL)
334 WRAP_GGO(clitkBinaryImageToMesh_GGO_C clitkBinaryImageToMesh.ggo)
335 ADD_EXECUTABLE(clitkBinaryImageToMesh clitkBinaryImageToMesh.cxx ${clitkBinaryImageToMesh_GGO_C})
336 TARGET_LINK_LIBRARIES(clitkBinaryImageToMesh ${ITK_LIBRARIES} vtkCommon vtkRendering)
337 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkBinaryImageToMesh)
339 WRAP_GGO(clitkMeshViewer_GGO_C clitkMeshViewer.ggo)
340 ADD_EXECUTABLE(clitkMeshViewer clitkMeshViewer.cxx ${clitkMeshViewer_GGO_C})
341 TARGET_LINK_LIBRARIES(clitkMeshViewer vtkCommon vtkRendering)
342 SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshViewer)
343 ENDIF(CLITK_EXPERIMENTAL)
345 SET_TARGET_PROPERTIES(${TOOLS_INSTALL} PROPERTIES INSTALL_RPATH "${VTK_DIR}:${ITK_DIR}" )
346 INSTALL (TARGETS ${TOOLS_INSTALL} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE)
348 ENDIF(CLITK_BUILD_TOOLS)