Skip to content

Commit

Permalink
WIP: Warnings from VTK 9.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mseng10 committed Feb 11, 2021
1 parent 9dfd5df commit d0ce719
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

# Since we use vtkImageMagnitude
find_package(VTK REQUIRED COMPONENTS vtkImagingMath)
include(${VTK_USE_FILE})

find_package(VTK REQUIRED COMPONENTS ImagingMath)
include_directories(${VTK_INCLUDE_DIRS})

add_executable(ConvertvtkImageDataToAnitkImage Code.cxx)
target_link_libraries(ConvertvtkImageDataToAnitkImage
Expand Down
4 changes: 2 additions & 2 deletions src/Bridge/VtkGlue/VTKImageToITKImage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ project(VTKImageToITKImage)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

find_package(VTK REQUIRED)
include(${VTK_USE_FILE})
find_package( VTK REQUIRED )
include_directories(${VTK_INCLUDE_DIRS})

add_executable(VTKImageToITKImage Code.cxx)
target_link_libraries(VTKImageToITKImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
Expand Down
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ include(${ITK_USE_FILE})
set(ENABLE_QUICKVIEW OFF)

if(Module_ITKVtkGlue OR ITKVtkGlue_LOADED)
find_package(VTK REQUIRED)
include(${VTK_USE_FILE})
find_package( VTK REQUIRED )
include_directories(${VTK_INCLUDE_DIRS})
set(ENABLE_QUICKVIEW ON)
add_definitions(-DENABLE_QUICKVIEW)
endif()
Expand Down
4 changes: 3 additions & 1 deletion src/Core/Common/FindMaxAndMinInImage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ project(FindMaxAndMinInImage)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

find_package( VTK REQUIRED )
include_directories(${VTK_INCLUDE_DIRS})

add_executable(FindMaxAndMinInImage Code.cxx)
target_link_libraries(FindMaxAndMinInImage ${ITK_LIBRARIES})
target_link_libraries(FindMaxAndMinInImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})

install(TARGETS FindMaxAndMinInImage
DESTINATION bin/ITKExamples/Core/Common
Expand Down
4 changes: 3 additions & 1 deletion src/Core/Common/InPlaceFilterOfImage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ project(InPlaceFilterOfImage)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

find_package( VTK REQUIRED )
include_directories(${VTK_INCLUDE_DIRS})

add_executable(InPlaceFilterOfImage Code.cxx)
target_link_libraries(InPlaceFilterOfImage ${ITK_LIBRARIES})
target_link_libraries(InPlaceFilterOfImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})

install(TARGETS InPlaceFilterOfImage
DESTINATION bin/ITKExamples/Core/Common
Expand Down
4 changes: 3 additions & 1 deletion src/Core/Common/IterateRegionWithNeighborhood/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ project(IterateRegionWithNeighborhood)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

find_package( VTK REQUIRED )
include_directories(${VTK_INCLUDE_DIRS})

add_executable(IterateRegionWithNeighborhood Code.cxx)
target_link_libraries(IterateRegionWithNeighborhood ${ITK_LIBRARIES})
target_link_libraries(IterateRegionWithNeighborhood ${ITK_LIBRARIES} ${VTK_LIBRARIES})

install(TARGETS IterateRegionWithNeighborhood
DESTINATION bin/ITKExamples/Core/Common
Expand Down
4 changes: 3 additions & 1 deletion src/Core/Common/IterateRegionWithWriteAccess/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ project(IterateRegionWithWriteAccess)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

find_package( VTK REQUIRED )
include_directories(${VTK_INCLUDE_DIRS})

add_executable(IterateRegionWithWriteAccess Code.cxx)
target_link_libraries(IterateRegionWithWriteAccess ${ITK_LIBRARIES})
target_link_libraries(IterateRegionWithWriteAccess ${ITK_LIBRARIES} ${VTK_LIBRARIES})

install(TARGETS IterateRegionWithWriteAccess
DESTINATION bin/ITKExamples/Core/Common
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ project(OutOfBoundsPixelsReturnConstValue)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

find_package( VTK REQUIRED )
include_directories(${VTK_INCLUDE_DIRS})

add_executable(OutOfBoundsPixelsReturnConstValue Code.cxx)
target_link_libraries(OutOfBoundsPixelsReturnConstValue ${ITK_LIBRARIES})
target_link_libraries(OutOfBoundsPixelsReturnConstValue ${ITK_LIBRARIES} ${VTK_LIBRARIES})

install(TARGETS OutOfBoundsPixelsReturnConstValue
DESTINATION bin/ITKExamples/Core/Common
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Mesh/ConvertMeshToUnstructeredGrid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ project(ConvertMeshToUnstructeredGrid)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

find_package(VTK REQUIRED)
include(${VTK_USE_FILE})
find_package( VTK REQUIRED )
include_directories(${VTK_INCLUDE_DIRS})

add_executable(ConvertMeshToUnstructeredGrid Code.cxx)
target_link_libraries(ConvertMeshToUnstructeredGrid ${ITK_LIBRARIES} ${VTK_LIBRARIES})
Expand Down
4 changes: 3 additions & 1 deletion src/Filtering/ImageIntensity/AddTwoImages/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ project(AddTwoImages)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

find_package( VTK REQUIRED )
include_directories(${VTK_INCLUDE_DIRS})

add_executable(AddTwoImages Code.cxx)
target_link_libraries(AddTwoImages ${ITK_LIBRARIES})
target_link_libraries(AddTwoImages ${ITK_LIBRARIES} ${VTK_LIBRARIES})

install(TARGETS AddTwoImages
DESTINATION bin/ITKExamples/Filtering/ImageIntensity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ project(SubtractTwoImages)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

find_package( VTK REQUIRED )
include_directories(${VTK_INCLUDE_DIRS})

add_executable(SubtractTwoImages Code.cxx)
target_link_libraries(SubtractTwoImages ${ITK_LIBRARIES})
target_link_libraries(SubtractTwoImages ${ITK_LIBRARIES} ${VTK_LIBRARIES})

install(TARGETS SubtractTwoImages
DESTINATION bin/ITKExamples/Filtering/ImageIntensity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ project(ClusterPixelsInGrayscaleImage)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

find_package( VTK REQUIRED )
include_directories(${VTK_INCLUDE_DIRS})

add_executable(ClusterPixelsInGrayscaleImage Code.cxx)
target_link_libraries(ClusterPixelsInGrayscaleImage ${ITK_LIBRARIES})
target_link_libraries(ClusterPixelsInGrayscaleImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})

install(TARGETS ClusterPixelsInGrayscaleImage
DESTINATION bin/ITKExamples/Segmentation/Classifiers
Expand Down

0 comments on commit d0ce719

Please sign in to comment.