From: delmon Date: Thu, 14 Apr 2011 08:10:30 +0000 (+0000) Subject: itkv4 migration: X-Git-Tag: v1.2.0~45 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c31bc376d3b6de4e9704931b4c6d01adde426320;p=clitk.git itkv4 migration: + ITKIO ITKStatistics ITKNumerics etc. disappeared and are replaced by ${ITK_LIBRARIES} --- diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 5458f01..589d108 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -43,7 +43,7 @@ IF(NOT ${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") TARGET_LINK_LIBRARIES(clitkCommon statgrab) ENDIF(NOT ${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") -TARGET_LINK_LIBRARIES(clitkCommon vtkCommon vtkImaging ITKBasicFilters) +TARGET_LINK_LIBRARIES(clitkCommon vtkCommon vtkImaging ${ITK_LIBRARIES}) ADD_LIBRARY(clitkDicomRTStruct STATIC clitkDicomRT_Contour.cxx diff --git a/registration/CMakeLists.txt b/registration/CMakeLists.txt index 97af42a..0f09596 100644 --- a/registration/CMakeLists.txt +++ b/registration/CMakeLists.txt @@ -18,60 +18,60 @@ ADD_LIBRARY(clitkAffineRegistrationLib IF(CLITK_BUILD_REGISTRATION) ############################## registration algorithms ADD_EXECUTABLE(clitkAffineRegistration clitkAffineRegistration.cxx) - TARGET_LINK_LIBRARIES(clitkAffineRegistration clitkAffineRegistrationLib clitkCommon ITKIO ITKNumerics ITKStatistics) + TARGET_LINK_LIBRARIES(clitkAffineRegistration clitkAffineRegistrationLib clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkDemonsDeformableRegistration_GGO_C clitkDemonsDeformableRegistration.ggo) ADD_EXECUTABLE(clitkDemonsDeformableRegistration clitkDemonsDeformableRegistration.cxx ${clitkDemonsDeformableRegistration_GGO_C} clitkDemonsDeformableRegistrationGenericFilter.cxx) - TARGET_LINK_LIBRARIES(clitkDemonsDeformableRegistration ITKNumerics ITKIO clitkCommon) + TARGET_LINK_LIBRARIES(clitkDemonsDeformableRegistration ${ITK_LIBRARIES} clitkCommon) WRAP_GGO(clitkBLUTDIR_GGO_C clitkBLUTDIR.ggo) ADD_EXECUTABLE(clitkBLUTDIR clitkBLUTDIR.cxx clitkBLUTDIRGenericFilter.cxx ${clitkBLUTDIR_GGO_C} clitkLBFGSBOptimizer.cxx ) - TARGET_LINK_LIBRARIES(clitkBLUTDIR clitkCommon ITKIO ITKNumerics ITKStatistics) + TARGET_LINK_LIBRARIES(clitkBLUTDIR clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkShapedBLUTSpatioTemporalDIR_GGO_C clitkShapedBLUTSpatioTemporalDIR.ggo) ADD_EXECUTABLE(clitkShapedBLUTSpatioTemporalDIR clitkShapedBLUTSpatioTemporalDIR.cxx clitkShapedBLUTSpatioTemporalDIRGenericFilter.cxx ${clitkShapedBLUTSpatioTemporalDIR_GGO_C} clitkLBFGSBOptimizer.cxx) - TARGET_LINK_LIBRARIES(clitkShapedBLUTSpatioTemporalDIR clitkCommon ITKNumerics ITKStatistics ITKIO) + TARGET_LINK_LIBRARIES(clitkShapedBLUTSpatioTemporalDIR clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkBSplineDeformableRegistration_GGO_C clitkBSplineDeformableRegistration.ggo) ADD_EXECUTABLE(clitkBSplineDeformableRegistration clitkBSplineDeformableRegistration.cxx clitkBSplineDeformableRegistrationGenericFilter.cxx ${clitkBSplineDeformableRegistration_GGO_C} clitkLBFGSBOptimizer.cxx) - TARGET_LINK_LIBRARIES(clitkBSplineDeformableRegistration clitkCommon ITKNumerics ITKStatistics ITKIO) + TARGET_LINK_LIBRARIES(clitkBSplineDeformableRegistration clitkCommon ${ITK_LIBRARIES}) ############################## registration-related tools to process points, bsplines, vf and image pyramids WRAP_GGO(clitkConvertPointList_GGO_C clitkConvertPointList.ggo) ADD_EXECUTABLE(clitkConvertPointList clitkConvertPointList.cxx ${clitkConvertPointList_GGO_C}) - TARGET_LINK_LIBRARIES(clitkConvertPointList ITKIO clitkCommon ) + TARGET_LINK_LIBRARIES(clitkConvertPointList ${ITK_LIBRARIES} clitkCommon ) WRAP_GGO(clitkSelectPoints_GGO_C clitkSelectPoints.ggo) ADD_EXECUTABLE(clitkSelectPoints clitkSelectPoints.cxx clitkSelectPointsGenericFilter.cxx ${clitkSelectPoints_GGO_C}) - TARGET_LINK_LIBRARIES(clitkSelectPoints clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkSelectPoints clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkPointTrajectory_GGO_C clitkPointTrajectory.ggo) ADD_EXECUTABLE(clitkPointTrajectory clitkPointTrajectory.cxx clitkPointTrajectoryGenericFilter.cxx ${clitkPointTrajectory_GGO_C}) - TARGET_LINK_LIBRARIES(clitkPointTrajectory clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkPointTrajectory clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkCalculateTRE_GGO_C clitkCalculateTRE.ggo) ADD_EXECUTABLE(clitkCalculateTRE clitkCalculateTRE.cxx clitkCalculateTREGenericFilter.cxx ${clitkCalculateTRE_GGO_C}) - TARGET_LINK_LIBRARIES(clitkCalculateTRE clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkCalculateTRE clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkMatrixTransformToVF_GGO_C clitkMatrixTransformToVF.ggo) ADD_EXECUTABLE(clitkMatrixTransformToVF clitkMatrixTransformToVF.cxx clitkMatrixTransformToVFGenericFilter.cxx ${clitkMatrixTransformToVF_GGO_C}) - TARGET_LINK_LIBRARIES(clitkMatrixTransformToVF ITKIO clitkCommon) + TARGET_LINK_LIBRARIES(clitkMatrixTransformToVF ${ITK_LIBRARIES} clitkCommon) WRAP_GGO(clitkConvertBSplineDeformableTransformToVF_GGO_C clitkConvertBSplineDeformableTransformToVF.ggo) ADD_EXECUTABLE(clitkConvertBSplineDeformableTransformToVF clitkConvertBSplineDeformableTransformToVF.cxx clitkConvertBSplineDeformableTransformToVFGenericFilter.cxx ${clitkConvertBSplineDeformableTransformToVF_GGO_C}) - TARGET_LINK_LIBRARIES(clitkConvertBSplineDeformableTransformToVF clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkConvertBSplineDeformableTransformToVF clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkMultiResolutionPyramid_GGO_C clitkMultiResolutionPyramid.ggo) ADD_EXECUTABLE(clitkMultiResolutionPyramid clitkMultiResolutionPyramid.cxx clitkMultiResolutionPyramidGenericFilter.cxx ${clitkMultiResolutionPyramid_GGO_C}) - TARGET_LINK_LIBRARIES(clitkMultiResolutionPyramid clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkMultiResolutionPyramid clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkBSplinePyramid_GGO_C clitkBSplinePyramid.ggo) ADD_EXECUTABLE(clitkBSplinePyramid clitkBSplinePyramid.cxx clitkBSplinePyramidGenericFilter.cxx ${clitkBSplinePyramid_GGO_C}) - TARGET_LINK_LIBRARIES(clitkBSplinePyramid clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkBSplinePyramid clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkResampleBSplineDeformableTransform_GGO_C clitkResampleBSplineDeformableTransform.ggo) ADD_EXECUTABLE(clitkResampleBSplineDeformableTransform clitkResampleBSplineDeformableTransform.cxx clitkResampleBSplineDeformableTransformGenericFilter.cxx ${clitkResampleBSplineDeformableTransform_GGO_C}) - TARGET_LINK_LIBRARIES(clitkResampleBSplineDeformableTransform clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkResampleBSplineDeformableTransform clitkCommon ${ITK_LIBRARIES}) ENDIF(CLITK_BUILD_REGISTRATION) diff --git a/segmentation/CMakeLists.txt b/segmentation/CMakeLists.txt index 2659851..b3e22d2 100644 --- a/segmentation/CMakeLists.txt +++ b/segmentation/CMakeLists.txt @@ -19,75 +19,75 @@ ADD_LIBRARY(clitkSegmentationGgoLib IF(CLITK_BUILD_SEGMENTATION) WRAP_GGO(clitkConnectedComponentLabeling_GGO_C clitkConnectedComponentLabeling.ggo) ADD_EXECUTABLE(clitkConnectedComponentLabeling clitkConnectedComponentLabeling.cxx ${clitkConnectedComponentLabeling_GGO_C}) - TARGET_LINK_LIBRARIES(clitkConnectedComponentLabeling clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkConnectedComponentLabeling clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkFillMask_GGO_C clitkFillMask.ggo) ADD_EXECUTABLE(clitkFillMask clitkFillMask.cxx ${clitkFillMask_GGO_C}) - TARGET_LINK_LIBRARIES(clitkFillMask clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkFillMask clitkCommon ${ITK_LIBRARIES}) ADD_EXECUTABLE(clitkExtractPatient clitkExtractPatient.cxx ${clitkExtractPatient_GGO_C}) - TARGET_LINK_LIBRARIES(clitkExtractPatient clitkCommon ITKIO clitkSegmentationGgoLib) + TARGET_LINK_LIBRARIES(clitkExtractPatient clitkCommon ${ITK_LIBRARIES} clitkSegmentationGgoLib) ADD_EXECUTABLE(clitkExtractLung clitkExtractLung.cxx ${clitkExtractLung_GGO_C}) - TARGET_LINK_LIBRARIES(clitkExtractLung clitkSegmentationGgoLib clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkExtractLung clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES}) # WRAP_GGO(clitkExtractAirwaysTreeInfo_GGO_C clitkExtractAirwaysTreeInfo.ggo) # ADD_EXECUTABLE(clitkExtractAirwaysTreeInfo clitkExtractAirwaysTreeInfo.cxx ${clitkExtractAirwaysTreeInfo_GGO_C}) - # TARGET_LINK_LIBRARIES(clitkExtractAirwaysTreeInfo clitkSegmentationGgoLib clitkCommon ITKIO) + # TARGET_LINK_LIBRARIES(clitkExtractAirwaysTreeInfo clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkExtractBones_GGO_C clitkExtractBones.ggo) ADD_EXECUTABLE(clitkExtractBones clitkExtractBones.cxx ${clitkExtractBones_GGO_C}) - TARGET_LINK_LIBRARIES(clitkExtractBones clitkCommon ITKIO clitkSegmentationGgoLib) + TARGET_LINK_LIBRARIES(clitkExtractBones clitkCommon ${ITK_LIBRARIES} clitkSegmentationGgoLib) WRAP_GGO(clitkExtractMediastinum_GGO_C clitkExtractMediastinum.ggo) ADD_EXECUTABLE(clitkExtractMediastinum clitkExtractMediastinum.cxx ${clitkExtractMediastinum_GGO_C}) - TARGET_LINK_LIBRARIES(clitkExtractMediastinum clitkCommon clitkSegmentationGgoLib ITKStatistics ITKIO) + TARGET_LINK_LIBRARIES(clitkExtractMediastinum clitkCommon clitkSegmentationGgoLib ${ITK_LIBRARIES}) # WRAP_GGO(clitkExtractLymphStations_GGO_C clitkExtractLymphStations.ggo) # ADD_EXECUTABLE(clitkExtractLymphStations clitkExtractLymphStations.cxx clitkFilterWithAnatomicalFeatureDatabaseManagement.cxx ${clitkExtractLymphStations_GGO_C}) - # TARGET_LINK_LIBRARIES(clitkExtractLymphStations clitkSegmentationGgoLib clitkCommon ITKIO ITKStatistics) + # TARGET_LINK_LIBRARIES(clitkExtractLymphStations clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES} ITKStatistics) WRAP_GGO(clitkMorphoMath_GGO_C clitkMorphoMath.ggo) ADD_EXECUTABLE(clitkMorphoMath clitkMorphoMath.cxx ${clitkMorphoMath_GGO_C}) - TARGET_LINK_LIBRARIES(clitkMorphoMath clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkMorphoMath clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkMorphoReconstruction_GGO_C clitkMorphoReconstruction.ggo) ADD_EXECUTABLE(clitkMorphoReconstruction clitkMorphoReconstruction.cxx clitkMorphoReconstructionGenericFilter.cxx ${clitkMorphoReconstruction_GGO_C}) - TARGET_LINK_LIBRARIES(clitkMorphoReconstruction clitkSegmentationGgoLib clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkMorphoReconstruction clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkCalculateDistanceMap_GGO_C clitkCalculateDistanceMap.ggo) ADD_EXECUTABLE(clitkCalculateDistanceMap clitkCalculateDistanceMap.cxx clitkCalculateDistanceMapGenericFilter.cxx ${clitkCalculateDistanceMap_GGO_C}) - TARGET_LINK_LIBRARIES(clitkCalculateDistanceMap clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkCalculateDistanceMap clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkLevelSetSegmentation_GGO_C clitkLevelSetSegmentation.ggo) ADD_EXECUTABLE(clitkLevelSetSegmentation clitkLevelSetSegmentation.cxx clitkLevelSetSegmentationGenericFilter.cxx ${clitkLevelSetSegmentation_GGO_C}) - TARGET_LINK_LIBRARIES(clitkLevelSetSegmentation clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkLevelSetSegmentation clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkAnd_GGO_C clitkAnd.ggo) ADD_EXECUTABLE(clitkAnd clitkAnd.cxx clitkAndGenericFilter.cxx ${clitkAnd_GGO_C}) - TARGET_LINK_LIBRARIES(clitkAnd clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkAnd clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkRegionGrowing_GGO_C clitkRegionGrowing.ggo) ADD_EXECUTABLE(clitkRegionGrowing clitkRegionGrowing.cxx clitkRegionGrowingGenericFilter.cxx ${clitkRegionGrowing_GGO_C}) - TARGET_LINK_LIBRARIES(clitkRegionGrowing clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkRegionGrowing clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkDecomposeAndReconstruct_GGO_C clitkDecomposeAndReconstruct.ggo) ADD_EXECUTABLE(clitkDecomposeAndReconstruct clitkDecomposeAndReconstruct.cxx clitkDecomposeAndReconstructGenericFilter.cxx ${clitkDecomposeAndReconstruct_GGO_C}) - TARGET_LINK_LIBRARIES(clitkDecomposeAndReconstruct clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkDecomposeAndReconstruct clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkMotionMask_GGO_C clitkMotionMask.ggo) ADD_EXECUTABLE(clitkMotionMask clitkMotionMask.cxx clitkMotionMaskGenericFilter.cxx ${clitkMotionMask_GGO_C}) - TARGET_LINK_LIBRARIES(clitkMotionMask clitkCommon ITKIO ITKStatistics ) + TARGET_LINK_LIBRARIES(clitkMotionMask clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkFillImageRegion_GGO_C clitkFillImageRegion.ggo) ADD_EXECUTABLE(clitkFillImageRegion clitkFillImageRegion.cxx clitkFillImageRegionGenericFilter.cxx ${clitkFillImageRegion_GGO_C}) - TARGET_LINK_LIBRARIES(clitkFillImageRegion clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkFillImageRegion clitkCommon ${ITK_LIBRARIES}) ENDIF(CLITK_BUILD_SEGMENTATION) # ADD_EXECUTABLE(ScalarImageMarkovRandomField1 ScalarImageMarkovRandomField1.cxx) -# TARGET_LINK_LIBRARIES(ScalarImageMarkovRandomField1 clitkCommon ITKIO ITKStatistics) +# TARGET_LINK_LIBRARIES(ScalarImageMarkovRandomField1 clitkCommon ${ITK_LIBRARIES} ITKStatistics) # ADD_EXECUTABLE(ScalarImageKmeansClassifier ScalarImageKmeansClassifier.cxx) -# TARGET_LINK_LIBRARIES(ScalarImageKmeansClassifier clitkCommon ITKIO ITKStatistics) +# TARGET_LINK_LIBRARIES(ScalarImageKmeansClassifier clitkCommon ${ITK_LIBRARIES} ITKStatistics) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 7ff9705..8df0ff8 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -24,234 +24,234 @@ ADD_LIBRARY(clitkMIPLib clitkMIPGenericFilter.cxx ${clitkMIP_GGO_C}) IF (CLITK_BUILD_TOOLS) WRAP_GGO(clitkDicomInfo_GGO_C clitkDicomInfo.ggo) ADD_EXECUTABLE(clitkDicomInfo clitkDicomInfo.cxx ${clitkDicomInfo_GGO_C}) - TARGET_LINK_LIBRARIES(clitkDicomInfo clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkDicomInfo clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkDicom2Image_GGO_C clitkDicom2Image.ggo) ADD_EXECUTABLE(clitkDicom2Image clitkDicom2Image.cxx ${clitkDicom2Image_GGO_C}) - TARGET_LINK_LIBRARIES(clitkDicom2Image clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkDicom2Image clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkImageInfo_GGO_C clitkImageInfo.ggo) ADD_EXECUTABLE(clitkImageInfo clitkImageInfo.cxx ${clitkImageInfo_GGO_C}) - TARGET_LINK_LIBRARIES(clitkImageInfo clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkImageInfo clitkCommon ${ITK_LIBRARIES}) ADD_EXECUTABLE(clitkImageConvert clitkImageConvert.cxx) - TARGET_LINK_LIBRARIES(clitkImageConvert clitkImageConvertLib clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkImageConvert clitkImageConvertLib clitkCommon ${ITK_LIBRARIES}) ADD_EXECUTABLE(clitkBinarizeImage clitkBinarizeImage.cxx) - TARGET_LINK_LIBRARIES(clitkBinarizeImage clitkBinarizeImageLib clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkBinarizeImage clitkBinarizeImageLib clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkVFResample_GGO_C clitkVFResample.ggo) ADD_EXECUTABLE(clitkVFResample clitkVFResample.cxx clitkVFResampleGenericFilter.cxx ${clitkVFResample_GGO_C}) - TARGET_LINK_LIBRARIES(clitkVFResample clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkVFResample clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkImageCreate_GGO_C clitkImageCreate.ggo) ADD_EXECUTABLE(clitkImageCreate clitkImageCreate.cxx ${clitkImageCreate_GGO_C}) - TARGET_LINK_LIBRARIES(clitkImageCreate clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkImageCreate clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkZeroVF_GGO_C clitkZeroVF.ggo) ADD_EXECUTABLE(clitkZeroVF clitkZeroVF.cxx ${clitkZeroVF_GGO_C} clitkZeroVFGenericFilter.cxx) - TARGET_LINK_LIBRARIES(clitkZeroVF clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkZeroVF clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkImageExtractLine_GGO_C clitkImageExtractLine.ggo) ADD_EXECUTABLE(clitkImageExtractLine clitkImageExtractLine.cxx ${clitkImageExtractLine_GGO_C}) - TARGET_LINK_LIBRARIES(clitkImageExtractLine clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkImageExtractLine clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkSplitImage_GGO_C clitkSplitImage.ggo) ADD_EXECUTABLE(clitkSplitImage clitkSplitImage.cxx clitkSplitImageGenericFilter.cxx ${clitkSplitImage_GGO_C}) - TARGET_LINK_LIBRARIES(clitkSplitImage clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkSplitImage clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkVFMerge_GGO_C clitkVFMerge.ggo) ADD_EXECUTABLE(clitkVFMerge clitkVFMerge.cxx ${clitkVFMerge_GGO_C}) - TARGET_LINK_LIBRARIES(clitkVFMerge ITKBasicFilters clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkVFMerge clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkWriteDicomSeries_GGO_C clitkWriteDicomSeries.ggo) ADD_EXECUTABLE(clitkWriteDicomSeries clitkWriteDicomSeries.cxx ${clitkWriteDicomSeries_GGO_C}) - TARGET_LINK_LIBRARIES(clitkWriteDicomSeries clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkWriteDicomSeries clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkAverageTemporalDimension_GGO_C clitkAverageTemporalDimension.ggo) ADD_EXECUTABLE(clitkAverageTemporalDimension clitkAverageTemporalDimension.cxx ${clitkAverageTemporalDimension_GGO_C}) - TARGET_LINK_LIBRARIES(clitkAverageTemporalDimension clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkAverageTemporalDimension clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkMedianTemporalDimension_GGO_C clitkMedianTemporalDimension.ggo) ADD_EXECUTABLE(clitkMedianTemporalDimension clitkMedianTemporalDimension.cxx ${clitkMedianTemporalDimension_GGO_C}) - TARGET_LINK_LIBRARIES(clitkMedianTemporalDimension clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkMedianTemporalDimension clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkWarpImage_GGO_C clitkWarpImage.ggo) ADD_EXECUTABLE(clitkWarpImage clitkWarpImage.cxx ${clitkWarpImage_GGO_C} clitkWarpImageGenericFilter.cxx) - TARGET_LINK_LIBRARIES(clitkWarpImage ITKBasicFilters clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkWarpImage clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkInvertVF_GGO_C clitkInvertVF.ggo) ADD_EXECUTABLE(clitkInvertVF clitkInvertVF.cxx ${clitkInvertVF_GGO_C}) - TARGET_LINK_LIBRARIES(clitkInvertVF clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkInvertVF clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkAffineTransform_GGO_C clitkAffineTransform.ggo) ADD_EXECUTABLE(clitkAffineTransform clitkAffineTransform.cxx ${clitkAffineTransform_GGO_C}) - TARGET_LINK_LIBRARIES(clitkAffineTransform clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkAffineTransform clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkSetBackground_GGO_C clitkSetBackground.ggo) ADD_EXECUTABLE(clitkSetBackground clitkSetBackground.cxx clitkSetBackgroundGenericFilter.cxx ${clitkSetBackground_GGO_C}) - TARGET_LINK_LIBRARIES(clitkSetBackground clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkSetBackground clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkGuerreroVentilation_GGO_C clitkGuerreroVentilation.ggo) ADD_EXECUTABLE(clitkGuerreroVentilation clitkGuerreroVentilation.cxx clitkGuerreroVentilationGenericFilter.cxx ${clitkGuerreroVentilation_GGO_C}) - TARGET_LINK_LIBRARIES(clitkGuerreroVentilation clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkGuerreroVentilation clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkGammaIndex_GGO_C clitkGammaIndex.ggo) ADD_EXECUTABLE(clitkGammaIndex clitkGammaIndex.cxx ${clitkGammaIndex_GGO_C}) TARGET_LINK_LIBRARIES(clitkGammaIndex vtkCommon vtkFiltering vtkGraphics vtkIO vtkImaging) ADD_EXECUTABLE(clitkImageArithm clitkImageArithm.cxx) - TARGET_LINK_LIBRARIES(clitkImageArithm clitkImageArithmImageLib clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkImageArithm clitkImageArithmImageLib clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkUnsharpMask_GGO_C clitkUnsharpMask.ggo) ADD_EXECUTABLE(clitkUnsharpMask clitkUnsharpMask.cxx ${clitkUnsharpMask_GGO_C}) - TARGET_LINK_LIBRARIES(clitkUnsharpMask clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkUnsharpMask clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkFooImage_GGO_C clitkFooImage.ggo) ADD_EXECUTABLE(clitkFooImage clitkFooImage.cxx ${clitkFooImage_GGO_C}) - TARGET_LINK_LIBRARIES(clitkFooImage clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkFooImage clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkMedianImageFilter_GGO_C clitkMedianImageFilter.ggo) ADD_EXECUTABLE(clitkMedianImageFilter clitkMedianImageFilter.cxx ${clitkMedianImageFilter_GGO_C}) - TARGET_LINK_LIBRARIES(clitkMedianImageFilter clitkCommon ITKIO ITKBasicFilters ) + TARGET_LINK_LIBRARIES(clitkMedianImageFilter clitkCommon ${ITK_LIBRARIES}) ADD_EXECUTABLE(clitkResampleImage clitkResampleImage.cxx) - TARGET_LINK_LIBRARIES(clitkResampleImage clitkResampleImageLib clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkResampleImage clitkResampleImageLib clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkMinMaxMask_GGO_C clitkMinMaxMask.ggo) ADD_EXECUTABLE(clitkMinMaxMask clitkMinMaxMask.cxx ${clitkMinMaxMask_GGO_C}) - TARGET_LINK_LIBRARIES(clitkMinMaxMask clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkMinMaxMask clitkCommon ${ITK_LIBRARIES} ) # WRAP_GGO(clitkAutoCrop_GGO_C clitkAutoCrop.ggo) # ADD_EXECUTABLE(clitkAutoCrop clitkAutoCrop.cxx ${clitkAutoCrop_GGO_C}) - # TARGET_LINK_LIBRARIES(clitkAutoCrop clitkCommon ITKIO ) + # TARGET_LINK_LIBRARIES(clitkAutoCrop clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkDicomRTStruct2BinaryImage_GGO_C clitkDicomRTStruct2BinaryImage.ggo) ADD_EXECUTABLE(clitkDicomRTStruct2BinaryImage clitkDicomRTStruct2BinaryImage.cxx ${clitkDicomRTStruct2BinaryImage_GGO_C}) - TARGET_LINK_LIBRARIES(clitkDicomRTStruct2BinaryImage ITKCommon clitkDicomRTStruct clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkDicomRTStruct2BinaryImage clitkDicomRTStruct clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkImageLog_GGO_C clitkImageLog.ggo) ADD_EXECUTABLE(clitkImageLog clitkImageLog.cxx ${clitkImageLog_GGO_C}) - TARGET_LINK_LIBRARIES(clitkImageLog ITKIO clitkCommon) + TARGET_LINK_LIBRARIES(clitkImageLog ${ITK_LIBRARIES} clitkCommon) WRAP_GGO(clitkFilter_GGO_C clitkFilter.ggo) ADD_EXECUTABLE(clitkFilter clitkFilter.cxx clitkFilterGenericFilter.cxx ${clitkFilter_GGO_C}) - TARGET_LINK_LIBRARIES(clitkFilter ITKIO clitkCommon) + TARGET_LINK_LIBRARIES(clitkFilter ${ITK_LIBRARIES} clitkCommon) WRAP_GGO(clitkConeBeamProjectImage_GGO_C clitkConeBeamProjectImage.ggo) ADD_EXECUTABLE(clitkConeBeamProjectImage clitkConeBeamProjectImage.cxx clitkConeBeamProjectImageGenericFilter.cxx ${clitkConeBeamProjectImage_GGO_C}) - TARGET_LINK_LIBRARIES(clitkConeBeamProjectImage ITKIO clitkCommon ) + TARGET_LINK_LIBRARIES(clitkConeBeamProjectImage ${ITK_LIBRARIES} clitkCommon ) WRAP_GGO(clitkComposeVF_GGO_C clitkComposeVF.ggo) ADD_EXECUTABLE(clitkComposeVF clitkComposeVFGenericFilter.cxx clitkComposeVF.cxx ${clitkComposeVF_GGO_C}) - TARGET_LINK_LIBRARIES(clitkComposeVF ITKBasicFilters ITKIO clitkCommon) + TARGET_LINK_LIBRARIES(clitkComposeVF ${ITK_LIBRARIES} clitkCommon) WRAP_GGO(clitkMergeSequence_GGO_C clitkMergeSequence.ggo) ADD_EXECUTABLE(clitkMergeSequence clitkMergeSequence.cxx clitkMergeSequenceGenericFilter.cxx ${clitkMergeSequence_GGO_C}) - TARGET_LINK_LIBRARIES(clitkMergeSequence ITKIO clitkCommon) + TARGET_LINK_LIBRARIES(clitkMergeSequence ${ITK_LIBRARIES} clitkCommon) WRAP_GGO(clitkBackProjectImage_GGO_C clitkBackProjectImage.ggo) ADD_EXECUTABLE(clitkBackProjectImage clitkBackProjectImage.cxx clitkBackProjectImageGenericFilter.cxx ${clitkBackProjectImage_GGO_C}) - TARGET_LINK_LIBRARIES(clitkBackProjectImage ITKIO clitkCommon ) + TARGET_LINK_LIBRARIES(clitkBackProjectImage ${ITK_LIBRARIES} clitkCommon ) ADD_EXECUTABLE(clitkCropImage clitkCropImage.cxx ${clitkCropImage_GGO_C}) - TARGET_LINK_LIBRARIES(clitkCropImage clitkCropImageLib clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkCropImage clitkCropImageLib clitkCommon ${ITK_LIBRARIES}) # WRAP_GGO(clitkExtractSlice_GGO_C clitkExtractSlice.ggo) # ADD_EXECUTABLE(clitkExtractSlice clitkExtractSlice.cxx clitkExtractSliceGenericFilter.cxx ${clitkExtractSlice_GGO_C}) - # TARGET_LINK_LIBRARIES(clitkExtractSlice clitkCommon ITKIO) + # TARGET_LINK_LIBRARIES(clitkExtractSlice clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkFlipImage_GGO_C clitkFlipImage.ggo) ADD_EXECUTABLE(clitkFlipImage clitkFlipImage.cxx clitkFlipImageGenericFilter.cxx ${clitkFlipImage_GGO_C}) - TARGET_LINK_LIBRARIES(clitkFlipImage clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkFlipImage clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkMirrorPadImage_GGO_C clitkMirrorPadImage.ggo) ADD_EXECUTABLE(clitkMirrorPadImage clitkMirrorPadImage.cxx clitkMirrorPadImageGenericFilter.cxx ${clitkMirrorPadImage_GGO_C}) - TARGET_LINK_LIBRARIES(clitkMirrorPadImage clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkMirrorPadImage clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkImageMoment_GGO_C clitkImageMoment.ggo) ADD_EXECUTABLE(clitkImageMoment clitkImageMoment.cxx clitkImageMomentGenericFilter.cxx ${clitkImageMoment_GGO_C}) - TARGET_LINK_LIBRARIES(clitkImageMoment clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkImageMoment clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkImageStatistics_GGO_C clitkImageStatistics.ggo) ADD_EXECUTABLE(clitkImageStatistics clitkImageStatistics.cxx clitkImageStatisticsGenericFilter.cxx ${clitkImageStatistics_GGO_C}) - TARGET_LINK_LIBRARIES(clitkImageStatistics clitkCommon ITKIO ITKStatistics) + TARGET_LINK_LIBRARIES(clitkImageStatistics clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkSetOrigin_GGO_C clitkSetOrigin.ggo) ADD_EXECUTABLE(clitkSetOrigin clitkSetOrigin.cxx clitkSetOriginGenericFilter.cxx ${clitkSetOrigin_GGO_C}) - TARGET_LINK_LIBRARIES(clitkSetOrigin clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkSetOrigin clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkGetOrigin_GGO_C clitkGetOrigin.ggo) ADD_EXECUTABLE(clitkGetOrigin clitkGetOrigin.cxx clitkGetOriginGenericFilter.cxx ${clitkGetOrigin_GGO_C}) - TARGET_LINK_LIBRARIES(clitkGetOrigin clitkCommon ITKIO ) + TARGET_LINK_LIBRARIES(clitkGetOrigin clitkCommon ${ITK_LIBRARIES} ) WRAP_GGO(clitkGetDirection_GGO_C clitkGetDirection.ggo) ADD_EXECUTABLE(clitkGetDirection clitkGetDirection.cxx clitkGetDirectionGenericFilter.cxx ${clitkGetDirection_GGO_C}) - TARGET_LINK_LIBRARIES(clitkGetDirection clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkGetDirection clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkSetDirection_GGO_C clitkSetDirection.ggo) ADD_EXECUTABLE(clitkSetDirection clitkSetDirection.cxx clitkSetDirectionGenericFilter.cxx ${clitkSetDirection_GGO_C}) - TARGET_LINK_LIBRARIES(clitkSetDirection clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkSetDirection clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkGetSize_GGO_C clitkGetSize.ggo) ADD_EXECUTABLE(clitkGetSize clitkGetSize.cxx clitkGetSizeGenericFilter.cxx ${clitkGetSize_GGO_C}) - TARGET_LINK_LIBRARIES(clitkGetSize clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkGetSize clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkGetSpacing_GGO_C clitkGetSpacing.ggo) ADD_EXECUTABLE(clitkGetSpacing clitkGetSpacing.cxx clitkGetSpacingGenericFilter.cxx ${clitkGetSpacing_GGO_C}) - TARGET_LINK_LIBRARIES(clitkGetSpacing clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkGetSpacing clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkSetSpacing_GGO_C clitkSetSpacing.ggo) ADD_EXECUTABLE(clitkSetSpacing clitkSetSpacing.cxx clitkSetSpacingGenericFilter.cxx ${clitkSetSpacing_GGO_C}) - TARGET_LINK_LIBRARIES(clitkSetSpacing clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkSetSpacing clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkCombineImage_GGO_C clitkCombineImage.ggo) ADD_EXECUTABLE(clitkCombineImage clitkCombineImage.cxx clitkCombineImageGenericFilter.cxx ${clitkCombineImage_GGO_C}) - TARGET_LINK_LIBRARIES(clitkCombineImage clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkCombineImage clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkPermuteAxes_GGO_C clitkPermuteAxes.ggo) ADD_EXECUTABLE(clitkPermuteAxes clitkPermuteAxes.cxx clitkPermuteAxesGenericFilter.cxx ${clitkPermuteAxes_GGO_C}) - TARGET_LINK_LIBRARIES(clitkPermuteAxes clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkPermuteAxes clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkChangeImageOrientation_GGO_C clitkChangeImageOrientation.ggo) ADD_EXECUTABLE(clitkChangeImageOrientation clitkChangeImageOrientation.cxx clitkChangeImageOrientationGenericFilter.cxx ${clitkChangeImageOrientation_GGO_C}) - TARGET_LINK_LIBRARIES(clitkChangeImageOrientation clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkChangeImageOrientation clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkVFConvert_GGO_C clitkVFConvert.ggo) ADD_EXECUTABLE(clitkVFConvert clitkVFConvert.cxx clitkVFConvertGenericFilter.cxx ${clitkVFConvert_GGO_C}) - TARGET_LINK_LIBRARIES(clitkVFConvert ITKBasicFilters ITKIO clitkCommon ) + TARGET_LINK_LIBRARIES(clitkVFConvert ${ITK_LIBRARIES} clitkCommon ) WRAP_GGO(clitkImageToVectorImage_GGO_C clitkImageToVectorImage.ggo) ADD_EXECUTABLE(clitkImageToVectorImage clitkImageToVectorImage.cxx clitkImageToVectorImageGenericFilter.cxx ${clitkImageToVectorImage_GGO_C}) - TARGET_LINK_LIBRARIES(clitkImageToVectorImage clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkImageToVectorImage clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkVectorImageToImage_GGO_C clitkVectorImageToImage.ggo) ADD_EXECUTABLE(clitkVectorImageToImage clitkVectorImageToImage.cxx clitkVectorImageToImageGenericFilter.cxx ${clitkVectorImageToImage_GGO_C}) - TARGET_LINK_LIBRARIES(clitkVectorImageToImage clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkVectorImageToImage clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkBSplineCoefficientsToValues_GGO_C clitkBSplineCoefficientsToValues.ggo) ADD_EXECUTABLE(clitkBSplineCoefficientsToValues clitkBSplineCoefficientsToValues.cxx clitkBSplineCoefficientsToValuesGenericFilter.cxx ${clitkBSplineCoefficientsToValues_GGO_C}) - TARGET_LINK_LIBRARIES(clitkBSplineCoefficientsToValues clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkBSplineCoefficientsToValues clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkValuesToBSplineCoefficients_GGO_C clitkValuesToBSplineCoefficients.ggo) ADD_EXECUTABLE(clitkValuesToBSplineCoefficients clitkValuesToBSplineCoefficients.cxx clitkValuesToBSplineCoefficientsGenericFilter.cxx ${clitkValuesToBSplineCoefficients_GGO_C}) - TARGET_LINK_LIBRARIES(clitkValuesToBSplineCoefficients clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkValuesToBSplineCoefficients clitkCommon ${ITK_LIBRARIES}) ADD_EXECUTABLE(clitkMIP clitkMIP.cxx clitkMIPGenericFilter.cxx) - TARGET_LINK_LIBRARIES(clitkMIP clitkMIPLib clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkMIP clitkMIPLib clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkRelativePosition_GGO_C clitkRelativePosition.ggo) ADD_EXECUTABLE(clitkRelativePosition clitkRelativePosition.cxx ${clitkRelativePosition_GGO_C}) - TARGET_LINK_LIBRARIES(clitkRelativePosition clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkRelativePosition clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkTransformLandmarks_GGO_C clitkTransformLandmarks.ggo) ADD_EXECUTABLE(clitkTransformLandmarks clitkTransformLandmarks.cxx ${clitkTransformLandmarks_GGO_C}) - TARGET_LINK_LIBRARIES(clitkTransformLandmarks clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkTransformLandmarks clitkCommon ${ITK_LIBRARIES}) WRAP_GGO(clitkLineProfile_GGO_C clitkLineProfile.ggo) ADD_EXECUTABLE(clitkLineProfile clitkLineProfile.cxx clitkLineProfileGenericFilter.cxx ${clitkLineProfile_GGO_C}) - TARGET_LINK_LIBRARIES(clitkLineProfile clitkCommon ITKIO) + TARGET_LINK_LIBRARIES(clitkLineProfile clitkCommon ${ITK_LIBRARIES}) ENDIF(CLITK_BUILD_TOOLS)