From d06f71e5b02899fd8ede7b022af5b6e8d208e203 Mon Sep 17 00:00:00 2001 From: Simon Rit <simon.rit@creatis.insa-lyon.fr> Date: Sat, 9 Dec 2023 07:51:13 +0100 Subject: [PATCH] COMP: Move call to wrap_itk_python_bindings_install for in ITK config Configuration was failing when compiling Python wrappings along with ITK's because the macro is not visible from the root CMakeLists.txt. --- CMakeLists.txt | 6 ------ wrapping/CMakeLists.txt | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7330c1aa7..645d0d5ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -262,12 +262,6 @@ if(ITK_WRAP_PYTHON) applications/rtkvarianobigeometry/rtkvarianobigeometry.py DESTINATION ${RTK_INSTALL_LIB_DIR} COMPONENT PythonWheelRuntimeLibraries) - WRAP_ITK_PYTHON_BINDINGS_INSTALL(/itk "RTK" - applications/rtk3Doutputimage_group.py - applications/rtkinputprojections_group.py - applications/rtkiterations_group.py - applications/rtkprojectors_group.py - wrapping/__init_rtk__.py) endif() # -------------------------------------------------------- diff --git a/wrapping/CMakeLists.txt b/wrapping/CMakeLists.txt index ee0491e20..44ad3bc7a 100644 --- a/wrapping/CMakeLists.txt +++ b/wrapping/CMakeLists.txt @@ -26,3 +26,10 @@ set(WRAPPER_SUBMODULE_ORDER itk_auto_load_submodules() itk_end_wrap_module() + +wrap_itk_python_bindings_install(/itk "RTK" + __init_rtk__.py + ${RTK_SOURCE_DIR}/applications/rtk3Doutputimage_group.py + ${RTK_SOURCE_DIR}/applications/rtkinputprojections_group.py + ${RTK_SOURCE_DIR}/applications/rtkiterations_group.py + ${RTK_SOURCE_DIR}/applications/rtkprojectors_group.py)