Skip to content

Commit

Permalink
COMP: Move call to wrap_itk_python_bindings_install for in ITK config
Browse files Browse the repository at this point in the history
Configuration was failing when compiling Python wrappings along with
ITK's because the macro is not visible from the root CMakeLists.txt.
  • Loading branch information
Simon Rit authored and SimonRit committed Dec 13, 2023
1 parent 8994dfe commit 6109465
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

# --------------------------------------------------------
Expand Down
7 changes: 7 additions & 0 deletions wrapping/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 6109465

Please sign in to comment.