Commit 392de563 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel
Browse files

vtkImagingCore: update to the new module system

parent 6bda3055
set(Module_SRCS
vtkExtractVOI.cxx
vtkImageAppendComponents.cxx
vtkImageBlend.cxx
vtkImageCacheFilter.cxx
vtkImageCast.cxx
vtkImageChangeInformation.cxx
vtkImageClip.cxx
vtkImageConstantPad.cxx
vtkImageDataStreamer.cxx
vtkImageDecomposeFilter.cxx
vtkImageDifference.cxx
vtkImageExtractComponents.cxx
vtkImageFlip.cxx
vtkImageIterateFilter.cxx
vtkImageMagnify.cxx
vtkImageMapToColors.cxx
vtkImageMask.cxx
vtkImageMirrorPad.cxx
vtkImagePadFilter.cxx
vtkImagePermute.cxx
vtkImagePointDataIterator.cxx
vtkImagePointIterator.cxx
vtkImageResample.cxx
vtkImageReslice.cxx
vtkImageResliceToColors.cxx
vtkImageShiftScale.cxx
vtkImageShrink3D.cxx
vtkImageStencilIterator.cxx
vtkImageThreshold.cxx
vtkImageTranslateExtent.cxx
vtkImageWrapPad.cxx
vtkRTAnalyticSource.cxx
vtkImageResize.cxx
vtkImageBSplineCoefficients.cxx
set(classes
vtkAbstractImageInterpolator
vtkExtractVOI
vtkImageAppendComponents
vtkImageBlend
vtkImageBSplineCoefficients
vtkImageBSplineInternals
vtkImageBSplineInterpolator
vtkImageCacheFilter
vtkImageCast
vtkImageChangeInformation
vtkImageClip
vtkImageConstantPad
vtkImageDataStreamer
vtkImageDecomposeFilter
vtkImageDifference
vtkImageExtractComponents
vtkImageFlip
vtkImageInterpolator
vtkImageIterateFilter
vtkImageMagnify
vtkImageMapToColors
vtkImageMask
vtkImageMirrorPad
vtkImagePadFilter
vtkImagePermute
vtkImagePointDataIterator
vtkImagePointIterator
vtkImageResample
vtkImageResize
vtkImageReslice
vtkImageResliceToColors
vtkImageShiftScale
vtkImageShrink3D
vtkImageSincInterpolator
vtkImageStencilAlgorithm
vtkImageStencilData
vtkImageStencilIterator
vtkImageStencilSource # Needed by vtkImageStencilData
vtkImageThreshold
vtkImageTranslateExtent
vtkImageWrapPad
vtkRTAnalyticSource)
vtkImageStencilData.cxx
vtkImageStencilAlgorithm.cxx
vtkAbstractImageInterpolator.cxx
vtkImageBSplineInternals.cxx
vtkImageBSplineInterpolator.cxx
vtkImageSincInterpolator.cxx
vtkImageInterpolator.cxx
vtkImageStencilSource.cxx # Needed by vtkImageStencilData
)
vtk_module_library(vtkImagingCore ${Module_SRCS})
vtk_module_add_module(VTK::ImagingCore
CLASSES ${classes})
vtk_module_test_data(
Data/beach.tif
Data/fullhead15.png
Data/headsq/,REGEX:.*)
add_subdirectory(Cxx)
if (VTK_WRAP_PYTHON)
vtk_module_test_data(
Data/B.pgm
Data/E07733S002I009.MR
Data/cactus.3337.pts
Data/earth.ppm
Data/ironProt.vtk
Data/masonry.bmp
Data/mr.001
Data/nut.slc
)
add_subdirectory(Python)
endif ()
......@@ -27,23 +27,23 @@ list(APPEND tests
)
# The stencil test is special
ExternalData_add_test(VTKData
NAME vtkImagingCoreCxx-AddStencilData
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::ImagingCoreCxx-AddStencilData
COMMAND vtkImagingCoreCxxTests TestImageStencilData 1
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V DATA{../Data/Baseline/TestAddStencilData.png,:})
ExternalData_add_test(VTKData
NAME vtkImagingCoreCxx-SubtractStencilData
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::ImagingCoreCxx-SubtractStencilData
COMMAND vtkImagingCoreCxxTests TestImageStencilData 2
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V DATA{../Data/Baseline/TestSubtractStencilData.png,:})
ExternalData_add_test(VTKData
NAME vtkImagingCoreCxx-ClipStencilData
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::ImagingCoreCxx-ClipStencilData
COMMAND vtkImagingCoreCxxTests TestImageStencilData 3
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V DATA{../Data/Baseline/TestClipStencilData.png,:})
vtk_test_cxx_executable(vtkImagingCoreCxxTests tests
......
vtk_module(vtkImagingCore
GROUPS
StandAlone
TEST_DEPENDS
vtkIOLegacy
vtkFiltersModeling
vtkFiltersGeneral
vtkFiltersHybrid
vtkRenderingOpenGL2
vtkTestingRendering
vtkInteractionStyle
vtkInteractionImage
vtkImagingMath # Move tests
vtkImagingStencil # Move tests
vtkImagingGeneral # Move tests
vtkImagingSources
vtkImagingStatistics # Move tests
vtkRenderingImage # Move tests
KIT
vtkImaging
DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkCommonExecutionModel
PRIVATE_DEPENDS
vtkCommonMath
vtkCommonTransforms
)
NAME
VTK::ImagingCore
LIBRARY_NAME
vtkImagingCore
KIT
VTK::Imaging
GROUPS
StandAlone
DEPENDS
VTK::CommonCore
VTK::CommonDataModel
VTK::CommonExecutionModel
PRIVATE_DEPENDS
VTK::CommonMath
VTK::CommonTransforms
TEST_DEPENDS
VTK::FiltersGeneral
VTK::FiltersHybrid
VTK::FiltersModeling
VTK::FiltersSources
VTK::ImagingGeneral
VTK::ImagingHybrid
VTK::ImagingMath
VTK::ImagingSources
VTK::ImagingStatistics
VTK::ImagingStencil
VTK::InteractionImage
VTK::InteractionStyle
VTK::IOImage
VTK::IOLegacy
VTK::RenderingImage
VTK::RenderingOpenGL2
VTK::TestingRendering
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment