diff --git a/src/Bridge/VtkGlue/VTKImageToITKImage/CMakeLists.txt b/src/Bridge/VtkGlue/VTKImageToITKImage/CMakeLists.txt index dedb49eb9..1b8d2732c 100644 --- a/src/Bridge/VtkGlue/VTKImageToITKImage/CMakeLists.txt +++ b/src/Bridge/VtkGlue/VTKImageToITKImage/CMakeLists.txt @@ -5,12 +5,17 @@ project(VTKImageToITKImage) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package(VTK REQUIRED COMPONENTS - vtkImagingColor - vtkIOImage - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}ImagingColor + ${_vtk_prefix}IOImage + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetAsElevationMap/CMakeLists.txt b/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetAsElevationMap/CMakeLists.txt index 6b707e8cd..361784fe1 100644 --- a/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetAsElevationMap/CMakeLists.txt +++ b/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetAsElevationMap/CMakeLists.txt @@ -5,11 +5,16 @@ project( VisualizeStaticDense2DLevelSetAsElevationMap ) find_package( ITK REQUIRED ) include( ${ITK_USE_FILE} ) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package( VTK REQUIRED COMPONENTS - vtkInteractionImage - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}InteractionImage + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if( VTK_VERSION VERSION_LESS "8.90.0" ) include( ${VTK_USE_FILE} ) diff --git a/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetZeroSet/CMakeLists.txt b/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetZeroSet/CMakeLists.txt index dc6852c6d..3cd9463af 100644 --- a/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetZeroSet/CMakeLists.txt +++ b/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetZeroSet/CMakeLists.txt @@ -5,10 +5,15 @@ project( VisualizeStaticDense2DLevelSetZeroSet ) find_package( ITK REQUIRED ) include( ${ITK_USE_FILE} ) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package( VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if( VTK_VERSION VERSION_LESS "8.90.0" ) include( ${VTK_USE_FILE} ) diff --git a/src/Bridge/VtkGlue/VisualizeStaticMalcolm2DLevelSetLayers/CMakeLists.txt b/src/Bridge/VtkGlue/VisualizeStaticMalcolm2DLevelSetLayers/CMakeLists.txt index b869dc67b..3caf76dcb 100644 --- a/src/Bridge/VtkGlue/VisualizeStaticMalcolm2DLevelSetLayers/CMakeLists.txt +++ b/src/Bridge/VtkGlue/VisualizeStaticMalcolm2DLevelSetLayers/CMakeLists.txt @@ -5,10 +5,15 @@ project( VisualizeStaticMalcolm2DLevelSetLayers ) find_package( ITK REQUIRED ) include( ${ITK_USE_FILE} ) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package( VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if( VTK_VERSION VERSION_LESS "8.90.0" ) include( ${VTK_USE_FILE} ) diff --git a/src/Bridge/VtkGlue/VisualizeStaticShi2DLevelSetLayers/CMakeLists.txt b/src/Bridge/VtkGlue/VisualizeStaticShi2DLevelSetLayers/CMakeLists.txt index 5a8c40a7a..8fd2d9f47 100644 --- a/src/Bridge/VtkGlue/VisualizeStaticShi2DLevelSetLayers/CMakeLists.txt +++ b/src/Bridge/VtkGlue/VisualizeStaticShi2DLevelSetLayers/CMakeLists.txt @@ -5,10 +5,15 @@ project( VisualizeStaticShi2DLevelSetLayers ) find_package( ITK REQUIRED ) include( ${ITK_USE_FILE} ) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package( VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if( VTK_VERSION VERSION_LESS "8.90.0" ) include( ${VTK_USE_FILE} ) diff --git a/src/Bridge/VtkGlue/VisualizeStaticWhitaker2DLevelSetLayers/CMakeLists.txt b/src/Bridge/VtkGlue/VisualizeStaticWhitaker2DLevelSetLayers/CMakeLists.txt index db8c3f245..b7e962fb6 100644 --- a/src/Bridge/VtkGlue/VisualizeStaticWhitaker2DLevelSetLayers/CMakeLists.txt +++ b/src/Bridge/VtkGlue/VisualizeStaticWhitaker2DLevelSetLayers/CMakeLists.txt @@ -5,10 +5,15 @@ project( VisualizeStaticWhitaker2DLevelSetLayers ) find_package( ITK REQUIRED ) include( ${ITK_USE_FILE} ) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package( VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if( VTK_VERSION VERSION_LESS "8.90.0" ) include( ${VTK_USE_FILE} ) diff --git a/src/Core/Common/DisplayImage/CMakeLists.txt b/src/Core/Common/DisplayImage/CMakeLists.txt index 4d826c50d..921ea47b7 100644 --- a/src/Core/Common/DisplayImage/CMakeLists.txt +++ b/src/Core/Common/DisplayImage/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package( VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Core/Common/FindMaxAndMinInImage/CMakeLists.txt b/src/Core/Common/FindMaxAndMinInImage/CMakeLists.txt index 85e79b8c0..2c4c83115 100644 --- a/src/Core/Common/FindMaxAndMinInImage/CMakeLists.txt +++ b/src/Core/Common/FindMaxAndMinInImage/CMakeLists.txt @@ -5,11 +5,16 @@ project(FindMaxAndMinInImage) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package(VTK REQUIRED COMPONENTS - vtkInteractionImage - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}InteractionImage + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Core/Common/InPlaceFilterOfImage/CMakeLists.txt b/src/Core/Common/InPlaceFilterOfImage/CMakeLists.txt index d17a8c733..59a3054bc 100644 --- a/src/Core/Common/InPlaceFilterOfImage/CMakeLists.txt +++ b/src/Core/Common/InPlaceFilterOfImage/CMakeLists.txt @@ -5,11 +5,16 @@ project(InPlaceFilterOfImage) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package(VTK REQUIRED COMPONENTS - vtkInteractionImage - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}InteractionImage + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Core/Common/IterateLineThroughImage/CMakeLists.txt b/src/Core/Common/IterateLineThroughImage/CMakeLists.txt index 557f350cf..740c606e4 100644 --- a/src/Core/Common/IterateLineThroughImage/CMakeLists.txt +++ b/src/Core/Common/IterateLineThroughImage/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package( VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Core/Common/IterateRegionWithAccessToIndexWithWriteAccess/CMakeLists.txt b/src/Core/Common/IterateRegionWithAccessToIndexWithWriteAccess/CMakeLists.txt index 3152a740b..6d868cbf0 100644 --- a/src/Core/Common/IterateRegionWithAccessToIndexWithWriteAccess/CMakeLists.txt +++ b/src/Core/Common/IterateRegionWithAccessToIndexWithWriteAccess/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Core/Common/IterateRegionWithAccessToIndexWithoutWriteAccess/CMakeLists.txt b/src/Core/Common/IterateRegionWithAccessToIndexWithoutWriteAccess/CMakeLists.txt index 2868207c9..c94c1285d 100644 --- a/src/Core/Common/IterateRegionWithAccessToIndexWithoutWriteAccess/CMakeLists.txt +++ b/src/Core/Common/IterateRegionWithAccessToIndexWithoutWriteAccess/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Core/Common/IterateRegionWithNeighborhood/CMakeLists.txt b/src/Core/Common/IterateRegionWithNeighborhood/CMakeLists.txt index f76e14c1b..382d5768e 100644 --- a/src/Core/Common/IterateRegionWithNeighborhood/CMakeLists.txt +++ b/src/Core/Common/IterateRegionWithNeighborhood/CMakeLists.txt @@ -5,11 +5,16 @@ project(IterateRegionWithNeighborhood) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package(VTK REQUIRED COMPONENTS - vtkInteractionImage - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}InteractionImage + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Core/Common/IterateRegionWithWriteAccess/CMakeLists.txt b/src/Core/Common/IterateRegionWithWriteAccess/CMakeLists.txt index 798c07956..657ab696d 100644 --- a/src/Core/Common/IterateRegionWithWriteAccess/CMakeLists.txt +++ b/src/Core/Common/IterateRegionWithWriteAccess/CMakeLists.txt @@ -5,11 +5,16 @@ project(IterateRegionWithWriteAccess) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package(VTK REQUIRED COMPONENTS - vtkInteractionImage - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}InteractionImage + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Core/Common/MakeOutOfBoundsPixelsReturnConstValue/CMakeLists.txt b/src/Core/Common/MakeOutOfBoundsPixelsReturnConstValue/CMakeLists.txt index a2a1b8cbd..64f82d904 100644 --- a/src/Core/Common/MakeOutOfBoundsPixelsReturnConstValue/CMakeLists.txt +++ b/src/Core/Common/MakeOutOfBoundsPixelsReturnConstValue/CMakeLists.txt @@ -5,12 +5,17 @@ project(MakeOutOfBoundsPixelsReturnConstValue) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package(VTK REQUIRED COMPONENTS - vtkInteractionImage - vtkInteractionStyle - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}InteractionImage + ${_vtk_prefix}InteractionStyle + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Core/Common/MultiThreadOilPainting/CMakeLists.txt b/src/Core/Common/MultiThreadOilPainting/CMakeLists.txt index 68bf2ba56..f3cc0a8e9 100644 --- a/src/Core/Common/MultiThreadOilPainting/CMakeLists.txt +++ b/src/Core/Common/MultiThreadOilPainting/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Core/Mesh/ConvertMeshToUnstructeredGrid/CMakeLists.txt b/src/Core/Mesh/ConvertMeshToUnstructeredGrid/CMakeLists.txt index fd5bb64c2..6ae853b56 100644 --- a/src/Core/Mesh/ConvertMeshToUnstructeredGrid/CMakeLists.txt +++ b/src/Core/Mesh/ConvertMeshToUnstructeredGrid/CMakeLists.txt @@ -5,11 +5,16 @@ project(ConvertMeshToUnstructeredGrid) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package(VTK REQUIRED COMPONENTS - vtkIOXML - vtkCommonDataModel - vtkInteractionImage + ${_vtk_prefix}IOXML + ${_vtk_prefix}CommonDataModel + ${_vtk_prefix}InteractionImage ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Core/SpatialObjects/ContourSpatialObject/CMakeLists.txt b/src/Core/SpatialObjects/ContourSpatialObject/CMakeLists.txt index 535eda2d5..4b781d68b 100644 --- a/src/Core/SpatialObjects/ContourSpatialObject/CMakeLists.txt +++ b/src/Core/SpatialObjects/ContourSpatialObject/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Core/Transform/GlobalRegistrationTwoImagesBSpline/CMakeLists.txt b/src/Core/Transform/GlobalRegistrationTwoImagesBSpline/CMakeLists.txt index 8b8756b0e..7a67eba75 100644 --- a/src/Core/Transform/GlobalRegistrationTwoImagesBSpline/CMakeLists.txt +++ b/src/Core/Transform/GlobalRegistrationTwoImagesBSpline/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges/CMakeLists.txt b/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges/CMakeLists.txt index f889e57bd..eb7ad91f0 100644 --- a/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges/CMakeLists.txt +++ b/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges2/CMakeLists.txt b/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges2/CMakeLists.txt index 2405e5fbd..fef0ff674 100644 --- a/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges2/CMakeLists.txt +++ b/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges2/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Filtering/BinaryMathematicalMorphology/ClosingBinaryImage/CMakeLists.txt b/src/Filtering/BinaryMathematicalMorphology/ClosingBinaryImage/CMakeLists.txt index e1f1099f9..8e22c205b 100644 --- a/src/Filtering/BinaryMathematicalMorphology/ClosingBinaryImage/CMakeLists.txt +++ b/src/Filtering/BinaryMathematicalMorphology/ClosingBinaryImage/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Filtering/BinaryMathematicalMorphology/OpeningBinaryImage/CMakeLists.txt b/src/Filtering/BinaryMathematicalMorphology/OpeningBinaryImage/CMakeLists.txt index db99c0328..3fa4e2fd0 100644 --- a/src/Filtering/BinaryMathematicalMorphology/OpeningBinaryImage/CMakeLists.txt +++ b/src/Filtering/BinaryMathematicalMorphology/OpeningBinaryImage/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Filtering/BinaryMathematicalMorphology/PruneBinaryImage/CMakeLists.txt b/src/Filtering/BinaryMathematicalMorphology/PruneBinaryImage/CMakeLists.txt index 482fa461e..1fdaab0bc 100644 --- a/src/Filtering/BinaryMathematicalMorphology/PruneBinaryImage/CMakeLists.txt +++ b/src/Filtering/BinaryMathematicalMorphology/PruneBinaryImage/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Filtering/Convolution/ConvolveImageWithKernel/CMakeLists.txt b/src/Filtering/Convolution/ConvolveImageWithKernel/CMakeLists.txt index 5ae677b87..82d3847cc 100644 --- a/src/Filtering/Convolution/ConvolveImageWithKernel/CMakeLists.txt +++ b/src/Filtering/Convolution/ConvolveImageWithKernel/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/CurvatureFlow/BinaryMinMaxCurvatureFlow/CMakeLists.txt b/src/Filtering/CurvatureFlow/BinaryMinMaxCurvatureFlow/CMakeLists.txt index 444912455..f1598eb90 100644 --- a/src/Filtering/CurvatureFlow/BinaryMinMaxCurvatureFlow/CMakeLists.txt +++ b/src/Filtering/CurvatureFlow/BinaryMinMaxCurvatureFlow/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Filtering/CurvatureFlow/SmoothImageUsingCurvatureFlow/CMakeLists.txt b/src/Filtering/CurvatureFlow/SmoothImageUsingCurvatureFlow/CMakeLists.txt index fd700f943..a280b4802 100644 --- a/src/Filtering/CurvatureFlow/SmoothImageUsingCurvatureFlow/CMakeLists.txt +++ b/src/Filtering/CurvatureFlow/SmoothImageUsingCurvatureFlow/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Filtering/CurvatureFlow/SmoothImageUsingMinMaxCurvatureFlow/CMakeLists.txt b/src/Filtering/CurvatureFlow/SmoothImageUsingMinMaxCurvatureFlow/CMakeLists.txt index 449dba5e5..d52df26c9 100644 --- a/src/Filtering/CurvatureFlow/SmoothImageUsingMinMaxCurvatureFlow/CMakeLists.txt +++ b/src/Filtering/CurvatureFlow/SmoothImageUsingMinMaxCurvatureFlow/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Filtering/CurvatureFlow/SmoothRGBImageUsingCurvatureFlow/CMakeLists.txt b/src/Filtering/CurvatureFlow/SmoothRGBImageUsingCurvatureFlow/CMakeLists.txt index ea961bbbc..8c8ccf022 100644 --- a/src/Filtering/CurvatureFlow/SmoothRGBImageUsingCurvatureFlow/CMakeLists.txt +++ b/src/Filtering/CurvatureFlow/SmoothRGBImageUsingCurvatureFlow/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Filtering/CurvatureFlow/SmoothRGBImageUsingMinMaxCurvatureFlow/CMakeLists.txt b/src/Filtering/CurvatureFlow/SmoothRGBImageUsingMinMaxCurvatureFlow/CMakeLists.txt index dbe423369..b81c82e77 100644 --- a/src/Filtering/CurvatureFlow/SmoothRGBImageUsingMinMaxCurvatureFlow/CMakeLists.txt +++ b/src/Filtering/CurvatureFlow/SmoothRGBImageUsingMinMaxCurvatureFlow/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Filtering/DistanceMap/ApproxDistanceMapOfBinary/CMakeLists.txt b/src/Filtering/DistanceMap/ApproxDistanceMapOfBinary/CMakeLists.txt index f17ac6795..1bbf49535 100644 --- a/src/Filtering/DistanceMap/ApproxDistanceMapOfBinary/CMakeLists.txt +++ b/src/Filtering/DistanceMap/ApproxDistanceMapOfBinary/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Filtering/DistanceMap/MaurerDistanceMapOfBinary/CMakeLists.txt b/src/Filtering/DistanceMap/MaurerDistanceMapOfBinary/CMakeLists.txt index ab3cb11b9..817039b3e 100644 --- a/src/Filtering/DistanceMap/MaurerDistanceMapOfBinary/CMakeLists.txt +++ b/src/Filtering/DistanceMap/MaurerDistanceMapOfBinary/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/DistanceMap/MeanDistanceBetweenAllPointsOnTwoCurves/CMakeLists.txt b/src/Filtering/DistanceMap/MeanDistanceBetweenAllPointsOnTwoCurves/CMakeLists.txt index 5958dd3b5..6df35568c 100644 --- a/src/Filtering/DistanceMap/MeanDistanceBetweenAllPointsOnTwoCurves/CMakeLists.txt +++ b/src/Filtering/DistanceMap/MeanDistanceBetweenAllPointsOnTwoCurves/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") @@ -43,4 +43,4 @@ install(FILES Code.cxx CMakeLists.txt enable_testing() add_test(NAME MeanDistanceBetweenAllPointsOnTwoCurvesTest - COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MeanDistanceBetweenAllPointsOnTwoCurves) \ No newline at end of file + COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MeanDistanceBetweenAllPointsOnTwoCurves) diff --git a/src/Filtering/DistanceMap/SignedDistanceMapOfBinary/CMakeLists.txt b/src/Filtering/DistanceMap/SignedDistanceMapOfBinary/CMakeLists.txt index 4899b53b4..766366c04 100644 --- a/src/Filtering/DistanceMap/SignedDistanceMapOfBinary/CMakeLists.txt +++ b/src/Filtering/DistanceMap/SignedDistanceMapOfBinary/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/ImageFeature/ApplyAFilterToASpecifiedRegionOfAnImage/CMakeLists.txt b/src/Filtering/ImageFeature/ApplyAFilterToASpecifiedRegionOfAnImage/CMakeLists.txt index a21938abe..13ead97c9 100644 --- a/src/Filtering/ImageFeature/ApplyAFilterToASpecifiedRegionOfAnImage/CMakeLists.txt +++ b/src/Filtering/ImageFeature/ApplyAFilterToASpecifiedRegionOfAnImage/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/ImageFeature/BilateralFilterAnImage/CMakeLists.txt b/src/Filtering/ImageFeature/BilateralFilterAnImage/CMakeLists.txt index 0b5f036b8..6f94072a7 100644 --- a/src/Filtering/ImageFeature/BilateralFilterAnImage/CMakeLists.txt +++ b/src/Filtering/ImageFeature/BilateralFilterAnImage/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/ImageFeature/FindZeroCrossingsInSignedImage/CMakeLists.txt b/src/Filtering/ImageFeature/FindZeroCrossingsInSignedImage/CMakeLists.txt index 28ac5e03c..675b4f3a2 100644 --- a/src/Filtering/ImageFeature/FindZeroCrossingsInSignedImage/CMakeLists.txt +++ b/src/Filtering/ImageFeature/FindZeroCrossingsInSignedImage/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package( VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/ImageFeature/ZeroCrossingBasedEdgeDecor/CMakeLists.txt b/src/Filtering/ImageFeature/ZeroCrossingBasedEdgeDecor/CMakeLists.txt index 6ad272745..74a0a1aba 100644 --- a/src/Filtering/ImageFeature/ZeroCrossingBasedEdgeDecor/CMakeLists.txt +++ b/src/Filtering/ImageFeature/ZeroCrossingBasedEdgeDecor/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/ImageGrid/CropImageBySpecifyingRegion2/CMakeLists.txt b/src/Filtering/ImageGrid/CropImageBySpecifyingRegion2/CMakeLists.txt index e6125ad4f..08d8ec3fd 100644 --- a/src/Filtering/ImageGrid/CropImageBySpecifyingRegion2/CMakeLists.txt +++ b/src/Filtering/ImageGrid/CropImageBySpecifyingRegion2/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/ImageGrid/RunImageFilterOnRegionOfImage/CMakeLists.txt b/src/Filtering/ImageGrid/RunImageFilterOnRegionOfImage/CMakeLists.txt index af4b115c9..e7d6b0436 100644 --- a/src/Filtering/ImageGrid/RunImageFilterOnRegionOfImage/CMakeLists.txt +++ b/src/Filtering/ImageGrid/RunImageFilterOnRegionOfImage/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package( VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/ImageIntensity/AbsValueOfImage/CMakeLists.txt b/src/Filtering/ImageIntensity/AbsValueOfImage/CMakeLists.txt index 1eafcec4f..04b2cf443 100644 --- a/src/Filtering/ImageIntensity/AbsValueOfImage/CMakeLists.txt +++ b/src/Filtering/ImageIntensity/AbsValueOfImage/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/ImageIntensity/AddTwoImages/CMakeLists.txt b/src/Filtering/ImageIntensity/AddTwoImages/CMakeLists.txt index aa4735454..99643d27d 100644 --- a/src/Filtering/ImageIntensity/AddTwoImages/CMakeLists.txt +++ b/src/Filtering/ImageIntensity/AddTwoImages/CMakeLists.txt @@ -5,11 +5,16 @@ project(AddTwoImages) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package(VTK REQUIRED COMPONENTS - vtkInteractionImage - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}InteractionImage + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/ImageIntensity/InvertImage/CMakeLists.txt b/src/Filtering/ImageIntensity/InvertImage/CMakeLists.txt index f28b76415..3513f4ae2 100644 --- a/src/Filtering/ImageIntensity/InvertImage/CMakeLists.txt +++ b/src/Filtering/ImageIntensity/InvertImage/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/ImageIntensity/MaskImage/CMakeLists.txt b/src/Filtering/ImageIntensity/MaskImage/CMakeLists.txt index 929dd4aba..bfd62dcb5 100644 --- a/src/Filtering/ImageIntensity/MaskImage/CMakeLists.txt +++ b/src/Filtering/ImageIntensity/MaskImage/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/ImageIntensity/NormalizeImage/CMakeLists.txt b/src/Filtering/ImageIntensity/NormalizeImage/CMakeLists.txt index a05a95d3c..b6c8dbc02 100644 --- a/src/Filtering/ImageIntensity/NormalizeImage/CMakeLists.txt +++ b/src/Filtering/ImageIntensity/NormalizeImage/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/ImageIntensity/SubtractTwoImages/CMakeLists.txt b/src/Filtering/ImageIntensity/SubtractTwoImages/CMakeLists.txt index c1a480ae5..e0e6a858d 100644 --- a/src/Filtering/ImageIntensity/SubtractTwoImages/CMakeLists.txt +++ b/src/Filtering/ImageIntensity/SubtractTwoImages/CMakeLists.txt @@ -5,11 +5,16 @@ project(SubtractTwoImages) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package(VTK REQUIRED COMPONENTS - vtkInteractionImage - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}InteractionImage + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Filtering/ImageLabel/ExtractBoundariesOfConnectedRegionsInBinaryImage/CMakeLists.txt b/src/Filtering/ImageLabel/ExtractBoundariesOfConnectedRegionsInBinaryImage/CMakeLists.txt index ca3627753..49a0dac6e 100644 --- a/src/Filtering/ImageLabel/ExtractBoundariesOfConnectedRegionsInBinaryImage/CMakeLists.txt +++ b/src/Filtering/ImageLabel/ExtractBoundariesOfConnectedRegionsInBinaryImage/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/ImageLabel/ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage/CMakeLists.txt b/src/Filtering/ImageLabel/ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage/CMakeLists.txt index 0a02bda0d..1175d498d 100644 --- a/src/Filtering/ImageLabel/ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage/CMakeLists.txt +++ b/src/Filtering/ImageLabel/ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/ImageLabel/LabelContoursOfConnectComponent/CMakeLists.txt b/src/Filtering/ImageLabel/LabelContoursOfConnectComponent/CMakeLists.txt index b29228cb6..7a96165fe 100644 --- a/src/Filtering/ImageLabel/LabelContoursOfConnectComponent/CMakeLists.txt +++ b/src/Filtering/ImageLabel/LabelContoursOfConnectComponent/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/MathematicalMorphology/ErodeBinaryImageUsingFlatStruct/CMakeLists.txt b/src/Filtering/MathematicalMorphology/ErodeBinaryImageUsingFlatStruct/CMakeLists.txt index 297c4b88b..8eddf5c11 100644 --- a/src/Filtering/MathematicalMorphology/ErodeBinaryImageUsingFlatStruct/CMakeLists.txt +++ b/src/Filtering/MathematicalMorphology/ErodeBinaryImageUsingFlatStruct/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/Smoothing/FindHigherDerivativesOfImage/CMakeLists.txt b/src/Filtering/Smoothing/FindHigherDerivativesOfImage/CMakeLists.txt index 4e69f7ff0..3b5034557 100644 --- a/src/Filtering/Smoothing/FindHigherDerivativesOfImage/CMakeLists.txt +++ b/src/Filtering/Smoothing/FindHigherDerivativesOfImage/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/Smoothing/SmoothImageWithDiscreteGaussianFilter/CMakeLists.txt b/src/Filtering/Smoothing/SmoothImageWithDiscreteGaussianFilter/CMakeLists.txt index 4b96a2532..9e4aa9ba9 100644 --- a/src/Filtering/Smoothing/SmoothImageWithDiscreteGaussianFilter/CMakeLists.txt +++ b/src/Filtering/Smoothing/SmoothImageWithDiscreteGaussianFilter/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/Thresholding/DemonstrateThresholdAlgorithms/CMakeLists.txt b/src/Filtering/Thresholding/DemonstrateThresholdAlgorithms/CMakeLists.txt index 2108a00cb..c85baeeb4 100644 --- a/src/Filtering/Thresholding/DemonstrateThresholdAlgorithms/CMakeLists.txt +++ b/src/Filtering/Thresholding/DemonstrateThresholdAlgorithms/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package( VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Filtering/Thresholding/SeparateGroundUsingOtsu/CMakeLists.txt b/src/Filtering/Thresholding/SeparateGroundUsingOtsu/CMakeLists.txt index b81da1bff..5ab0c9083 100644 --- a/src/Filtering/Thresholding/SeparateGroundUsingOtsu/CMakeLists.txt +++ b/src/Filtering/Thresholding/SeparateGroundUsingOtsu/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Nonunit/Review/GeometricPropertiesOfRegion/CMakeLists.txt b/src/Nonunit/Review/GeometricPropertiesOfRegion/CMakeLists.txt index 21c6110b9..21621c052 100644 --- a/src/Nonunit/Review/GeometricPropertiesOfRegion/CMakeLists.txt +++ b/src/Nonunit/Review/GeometricPropertiesOfRegion/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Registration/Common/WatchRegistration/CMakeLists.txt b/src/Registration/Common/WatchRegistration/CMakeLists.txt index 80b365db5..ca45ab82c 100644 --- a/src/Registration/Common/WatchRegistration/CMakeLists.txt +++ b/src/Registration/Common/WatchRegistration/CMakeLists.txt @@ -5,10 +5,15 @@ project(WatchRegistration) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Segmentation/Classifiers/ClusterPixelsInGrayscaleImage/CMakeLists.txt b/src/Segmentation/Classifiers/ClusterPixelsInGrayscaleImage/CMakeLists.txt index bab377275..cf672c594 100644 --- a/src/Segmentation/Classifiers/ClusterPixelsInGrayscaleImage/CMakeLists.txt +++ b/src/Segmentation/Classifiers/ClusterPixelsInGrayscaleImage/CMakeLists.txt @@ -5,11 +5,16 @@ project(ClusterPixelsInGrayscaleImage) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) +find_package(VTK REQUIRED) +set(_vtk_prefix "") +if(VTK_VERSION VERSION_LESS "8.90.0") + set(_vtk_prefix "vtk") +endif() find_package(VTK REQUIRED COMPONENTS - vtkInteractionImage - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}InteractionImage + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") include(${VTK_USE_FILE}) diff --git a/src/Segmentation/ConnectedComponents/AssignContiguousLabelsToConnectedRegions/CMakeLists.txt b/src/Segmentation/ConnectedComponents/AssignContiguousLabelsToConnectedRegions/CMakeLists.txt index a04897e8d..7c63235b3 100644 --- a/src/Segmentation/ConnectedComponents/AssignContiguousLabelsToConnectedRegions/CMakeLists.txt +++ b/src/Segmentation/ConnectedComponents/AssignContiguousLabelsToConnectedRegions/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Segmentation/ConnectedComponents/ExtraLargestConnectComponentFromBinaryImage/CMakeLists.txt b/src/Segmentation/ConnectedComponents/ExtraLargestConnectComponentFromBinaryImage/CMakeLists.txt index 8d21a2e98..593250d0f 100644 --- a/src/Segmentation/ConnectedComponents/ExtraLargestConnectComponentFromBinaryImage/CMakeLists.txt +++ b/src/Segmentation/ConnectedComponents/ExtraLargestConnectComponentFromBinaryImage/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Segmentation/ConnectedComponents/LabelConnectComponentsInGrayscaleImage/CMakeLists.txt b/src/Segmentation/ConnectedComponents/LabelConnectComponentsInGrayscaleImage/CMakeLists.txt index 6b00848d1..623aba9e9 100644 --- a/src/Segmentation/ConnectedComponents/LabelConnectComponentsInGrayscaleImage/CMakeLists.txt +++ b/src/Segmentation/ConnectedComponents/LabelConnectComponentsInGrayscaleImage/CMakeLists.txt @@ -9,8 +9,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") diff --git a/src/Segmentation/RegionGrowing/SegmentPixelsWithSimilarStats/CMakeLists.txt b/src/Segmentation/RegionGrowing/SegmentPixelsWithSimilarStats/CMakeLists.txt index 8c50fa0df..44e282e3e 100644 --- a/src/Segmentation/RegionGrowing/SegmentPixelsWithSimilarStats/CMakeLists.txt +++ b/src/Segmentation/RegionGrowing/SegmentPixelsWithSimilarStats/CMakeLists.txt @@ -8,8 +8,8 @@ include(${ITK_USE_FILE}) if(ENABLE_QUICKVIEW) find_package(VTK REQUIRED COMPONENTS - vtkRenderingCore - vtkRenderingGL2PSOpenGL2 + ${_vtk_prefix}RenderingCore + ${_vtk_prefix}RenderingGL2PSOpenGL2 ) if(VTK_VERSION VERSION_LESS "8.90.0") @@ -50,4 +50,4 @@ add_test(NAME SegmentPixelsWithSimilarStatsTest ${input_image} 100 50 - ) \ No newline at end of file + )