From 74896b99c08a79ab6721675c504c9f45e6612c2e Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Thu, 16 Nov 2023 16:27:23 +0100 Subject: [PATCH] Use ITK 5.x instead of 4.13 --- .github/install.sh | 2 +- Polyhedron/demo/Polyhedron/Plugins/Mesh_3/CMakeLists.txt | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/install.sh b/.github/install.sh index e41d4762a2e..5fc8323c8c9 100755 --- a/.github/install.sh +++ b/.github/install.sh @@ -13,7 +13,7 @@ sudo apt-get install -y \ libqt5svg5-dev qttools5-dev qttools5-dev-tools \ libboost-dev libboost-serialization-dev libboost-iostreams-dev libboost-filesystem-dev libboost-filesystem-dev \ libvtk9-dev libunwind-dev \ - libinsighttoolkit4-dev \ + libinsighttoolkit5-dev \ libceres-dev \ libglpk-dev \ libopencv-dev \ diff --git a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/CMakeLists.txt b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/CMakeLists.txt index 994a71fc703..f7cadd99fb6 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/CMakeLists.txt +++ b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/CMakeLists.txt @@ -33,7 +33,11 @@ find_package(ITK NAMES ITK InsightToolkit if(ITK_FOUND) include(${ITK_USE_FILE}) set(ITK_LIBS ITKCommon ITKSmoothing ITKImageIntensity) - + foreach(lib ${ITK_LIBS}) + if(NOT TARGET ${lib}) + message(STATUS "ITK library ${lib} not found") + endif() + endforeach() target_link_libraries(mesh_3_plugin PUBLIC ${ITK_LIBS}) target_compile_definitions(mesh_3_plugin PUBLIC CGAL_USE_ITK) endif(ITK_FOUND)