From: srit Date: Thu, 29 Apr 2010 18:16:58 +0000 (+0000) Subject: Use WRAP_GGO to handle ggo files X-Git-Tag: v1.2.0~674 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=3ddf3d190d7354e3b31a717e1190fe810aa10e0b;p=clitk.git Use WRAP_GGO to handle ggo files --- diff --git a/filters/CMakeLists.txt b/filters/CMakeLists.txt index 4fc8468..12d0cc5 100644 --- a/filters/CMakeLists.txt +++ b/filters/CMakeLists.txt @@ -4,19 +4,23 @@ INCLUDE(../cmake/common.cmake) #========================================================= # make clitk libraries +WRAP_GGO(clitkFilters_GGO_C + clitkBinarizeImage.ggo + clitkUnsharpMask.ggo + clitkFooImage.ggo + clitkImageArithm.ggo + clitkMedianImageFilter.ggo +) + SET(clitkFilters_SRC + ${clitkFilters_GGO_C} clitkGuerreroVentilationGenericFilter.cxx - clitkBinarizeImage_ggo.c clitkImageConvertGenericFilter.cxx clitkImageFillRegionGenericFilter.cxx clitkImageResampleGenericFilter.cxx clitkSplitImageGenericFilter.cxx clitkVFResampleGenericFilter.cxx - clitkMedianImageFilter_ggo.c clitkMedianImageGenericFilter.cxx - clitkUnsharpMask_ggo.c - clitkFooImage_ggo.c - clitkImageArithm_ggo.c - ) +) ADD_LIBRARY(clitkFilters STATIC ${clitkFilters_SRC}) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index becacb2..5bd72b5 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -3,83 +3,94 @@ INCLUDE(${PROJECT_SOURCE_DIR}/cmake/common.cmake) #========================================================= - -ADD_EXECUTABLE(clitkDicomInfo clitkDicomInfo.cxx clitkDicomInfo_ggo.c) +WRAP_GGO(clitkDicomInfo_GGO_C clitkDicomInfo.ggo) +ADD_EXECUTABLE(clitkDicomInfo clitkDicomInfo.cxx ${clitkDicomInfo_GGO_C}) TARGET_LINK_LIBRARIES(clitkDicomInfo clitkCommon ITKIO) -ADD_EXECUTABLE(clitkImageInfo clitkImageInfo.cxx clitkImageInfo_ggo.c) +WRAP_GGO(clitkImageInfo_GGO_C clitkImageInfo.ggo) +ADD_EXECUTABLE(clitkImageInfo clitkImageInfo.cxx ${clitkImageInfo_GGO_C}) TARGET_LINK_LIBRARIES(clitkImageInfo clitkCommon ITKIO) -ADD_EXECUTABLE(clitkImageConvert clitkImageConvert.cxx clitkImageConvert_ggo.c ) +WRAP_GGO(clitkImageConvert_GGO_C clitkImageConvert.ggo) +ADD_EXECUTABLE(clitkImageConvert clitkImageConvert.cxx ${clitkImageConvert_GGO_C}) TARGET_LINK_LIBRARIES(clitkImageConvert clitkCommon ITKIO clitkFilters) -ADD_EXECUTABLE(clitkImageResample clitkImageResample.cxx clitkImageResample_ggo.c) +WRAP_GGO(clitkImageResample_GGO_C clitkImageResample.ggo) +ADD_EXECUTABLE(clitkImageResample clitkImageResample.cxx ${clitkImageResample_GGO_C}) TARGET_LINK_LIBRARIES(clitkImageResample clitkCommon ITKIO clitkFilters) -ADD_EXECUTABLE(clitkVFResample clitkVFResample.cxx clitkImageResample_ggo.c) +WRAP_GGO(clitkVFResample_GGO_C clitkVFResample.ggo) +ADD_EXECUTABLE(clitkVFResample clitkVFResample.cxx ${clitkImageResample_GGO_C}) TARGET_LINK_LIBRARIES(clitkVFResample clitkCommon ITKIO clitkFilters) -ADD_EXECUTABLE(clitkImageCreate clitkImageCreate.cxx clitkImageCreate_ggo.c) +WRAP_GGO(clitkImageCreate_GGO_C clitkImageCreate.ggo) +ADD_EXECUTABLE(clitkImageCreate clitkImageCreate.cxx ${clitkImageCreate_GGO_C}) TARGET_LINK_LIBRARIES(clitkImageCreate clitkCommon ITKStatistics ITKIO) -ADD_EXECUTABLE(clitkImageFillRegion clitkImageFillRegion.cxx clitkImageFillRegion_ggo.c) -TARGET_LINK_LIBRARIES(clitkImageFillRegion clitkCommon -ITKIO ITKStatistics clitkFilters) +WRAP_GGO(clitkImageFillRegion_GGO_C clitkImageFillRegion.ggo) +ADD_EXECUTABLE(clitkImageFillRegion clitkImageFillRegion.cxx ${clitkImageFillRegion_GGO_C}) +TARGET_LINK_LIBRARIES(clitkImageFillRegion clitkCommon ITKIO ITKStatistics clitkFilters) -ADD_EXECUTABLE(clitkZeroVF clitkZeroVF.cxx clitkZeroVF_ggo.c -clitkZeroVFGenericFilter.cxx) -TARGET_LINK_LIBRARIES(clitkZeroVF clitkCommon ITKStatistics ITKIO ) +WRAP_GGO(clitkZeroVF_GGO_C clitkZeroVF.ggo) +ADD_EXECUTABLE(clitkZeroVF clitkZeroVF.cxx ${clitkZeroVF_GGO_C} clitkZeroVFGenericFilter.cxx) +TARGET_LINK_LIBRARIES(clitkZeroVF clitkCommon ITKStatistics ITKIO) -ADD_EXECUTABLE(clitkImageExtractLine clitkImageExtractLine.cxx clitkImageExtractLine_ggo.c) +WRAP_GGO(clitkImageExtractLine_GGO_C clitkImageExtractLine.ggo) +ADD_EXECUTABLE(clitkImageExtractLine clitkImageExtractLine.cxx ${clitkImageExtractLine_GGO_C}) TARGET_LINK_LIBRARIES(clitkImageExtractLine clitkCommon ITKStatistics ITKIO) -ADD_EXECUTABLE(clitkSplitImage clitkSplitImage.cxx clitkSplitImage_ggo.c - ) -TARGET_LINK_LIBRARIES(clitkSplitImage ITKBasicFilters clitkCommon ITKIO -clitkFilters) +WRAP_GGO(clitkSplitImage_GGO_C clitkSplitImage.ggo) +ADD_EXECUTABLE(clitkSplitImage clitkSplitImage.cxx ${clitkSplitImage_GGO_C}) +TARGET_LINK_LIBRARIES(clitkSplitImage ITKBasicFilters clitkCommon ITKIO clitkFilters) -ADD_EXECUTABLE(clitkVFMerge clitkVFMerge.cxx clitkVFMerge_ggo.c) -TARGET_LINK_LIBRARIES(clitkVFMerge ITKBasicFilters clitkCommon ITKIO ) +WRAP_GGO(clitkVFMerge_GGO_C clitkVFMerge.ggo) +ADD_EXECUTABLE(clitkVFMerge clitkVFMerge.cxx ${clitkVFMerge_GGO_C}) +TARGET_LINK_LIBRARIES(clitkVFMerge ITKBasicFilters clitkCommon ITKIO) -ADD_EXECUTABLE(clitkWriteDicomSeries clitkWriteDicomSeries.cxx clitkWriteDicomSeries_ggo.c) +WRAP_GGO(clitkWriteDicomSeries_GGO_C clitkWriteDicomSeries.ggo) +ADD_EXECUTABLE(clitkWriteDicomSeries clitkWriteDicomSeries.cxx ${clitkWriteDicomSeries_GGO_C}) TARGET_LINK_LIBRARIES(clitkWriteDicomSeries clitkCommon ITKIO clitkFilters) -ADD_EXECUTABLE(clitkAverageTemporalDimension clitkAverageTemporalDimension.cxx clitkAverageTemporalDimension_ggo.c) -TARGET_LINK_LIBRARIES(clitkAverageTemporalDimension clitkCommon ITKIO -clitkFilters) +WRAP_GGO(clitkAverageTemporalDimension_GGO_C clitkAverageTemporalDimension.ggo) +ADD_EXECUTABLE(clitkAverageTemporalDimension clitkAverageTemporalDimension.cxx ${clitkAverageTemporalDimension_GGO_C}) +TARGET_LINK_LIBRARIES(clitkAverageTemporalDimension clitkCommon ITKIO clitkFilters) -ADD_EXECUTABLE(clitkWarpImage clitkWarpImage.cxx clitkWarpImage_ggo.c -clitkWarpImageGenericFilter.cxx) -TARGET_LINK_LIBRARIES(clitkWarpImage ITKBasicFilters clitkCommon ITKIO -) +WRAP_GGO(clitkWarpImage_GGO_C clitkWarpImage.ggo) +ADD_EXECUTABLE(clitkWarpImage clitkWarpImage.cxx ${clitkWarpImage_GGO_C} clitkWarpImageGenericFilter.cxx) +TARGET_LINK_LIBRARIES(clitkWarpImage ITKBasicFilters clitkCommon ITKIO) -ADD_EXECUTABLE(clitkInvertVF clitkInvertVF.cxx clitkInvertVF_ggo.c) +WRAP_GGO(clitkInvertVF_GGO_C clitkInvertVF.ggo) +ADD_EXECUTABLE(clitkInvertVF clitkInvertVF.cxx ${clitkInvertVF_GGO_C}) TARGET_LINK_LIBRARIES(clitkInvertVF clitkCommon ITKIO clitkFilters) -ADD_EXECUTABLE(clitkAffineTransform clitkAffineTransform.cxx clitkAffineTransform_ggo.c) -TARGET_LINK_LIBRARIES(clitkAffineTransform clitkCommon ITKIO clitkFilters) +WRAP_GGO(clitkAffineTransform_GGO_C clitkAffineTransform.ggo) +ADD_EXECUTABLE(clitkAffineTransform clitkAffineTransform.cxx ${clitkAffineTransform_GGO_C}) +TARGET_LINK_LIBRARIES(clitkAffineTransform clitkCommon ITKIO clitkFilters) -ADD_EXECUTABLE(clitkSetBackground clitkSetBackground.cxx -clitkSetBackgroundGenericFilter.cxx clitkSetBackground_ggo.c) -TARGET_LINK_LIBRARIES(clitkSetBackground clitkCommon ITKIO ) +WRAP_GGO(clitkSetBackground_GGO_C clitkSetBackground.ggo) +ADD_EXECUTABLE(clitkSetBackground clitkSetBackground.cxx clitkSetBackgroundGenericFilter.cxx ${clitkSetBackground_GGO_C}) +TARGET_LINK_LIBRARIES(clitkSetBackground clitkCommon ITKIO) -ADD_EXECUTABLE(clitkGuerreroVentilation clitkGuerreroVentilation.cxx - clitkGuerreroVentilation_ggo.c -) -TARGET_LINK_LIBRARIES(clitkGuerreroVentilation clitkCommon ITKIO ITKBasicFilters -clitkFilters) +WRAP_GGO(clitkGuerreroVentilation_GGO_C clitkGuerreroVentilation.ggo) +ADD_EXECUTABLE(clitkGuerreroVentilation clitkGuerreroVentilation.cxx ${clitkGuerreroVentilation_GGO_C}) +TARGET_LINK_LIBRARIES(clitkGuerreroVentilation clitkCommon ITKIO ITKBasicFilters clitkFilters) +WRAP_GGO(clitkImageArithm_GGO_C clitkImageArithm.ggo) ADD_EXECUTABLE(clitkImageArithm clitkImageArithm.cxx) TARGET_LINK_LIBRARIES(clitkImageArithm clitkCommon ITKIO ITKStatistics clitkFilters) +WRAP_GGO(clitkUnsharpMask_GGO_C clitkUnsharpMask.ggo) ADD_EXECUTABLE(clitkUnsharpMask clitkUnsharpMask.cxx) TARGET_LINK_LIBRARIES(clitkUnsharpMask clitkCommon ITKIO clitkFilters) +WRAP_GGO(clitkFooImage_GGO_C clitkFooImage.ggo) ADD_EXECUTABLE(clitkFooImage clitkFooImage.cxx) TARGET_LINK_LIBRARIES(clitkFooImage clitkCommon ITKIO clitkFilters) +WRAP_GGO(clitkBinarizeImage_GGO_C clitkBinarizeImage.ggo) ADD_EXECUTABLE(clitkBinarizeImage clitkBinarizeImage.cxx) TARGET_LINK_LIBRARIES(clitkBinarizeImage clitkCommon ITKIO clitkFilters) +WRAP_GGO(clitkMedianImageFilter_GGO_C clitkMedianImageFilter.ggo) ADD_EXECUTABLE(clitkMedianImageFilter clitkMedianImageFilter.cxx) TARGET_LINK_LIBRARIES(clitkMedianImageFilter clitkCommon ITKIO clitkFilters ITKBasicFilters)