From 1be48691394e410f0f12724ef2a6487f4283f12f Mon Sep 17 00:00:00 2001 From: Mathieu Westphal Date: Thu, 10 Apr 2025 15:05:49 +0200 Subject: [PATCH] Additional: Add support for packaging additional python modules --- CMakeLists.txt | 3 ++- README.md | 3 ++- projects/paraview.bundle.common.cmake | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6802243b..5bacbe76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -405,8 +405,9 @@ function (superbuild_add_packaging) PARAVIEW_PACKAGE_SUFFIX PARAVIEW_CATALYST_EDITION paraview_is_shared + paraview_additional_bundle_files paraview_additional_plugins - paraview_additional_bundle_files) + paraview_additional_python_modules) if (paraview_enabled) set(PARAVIEW_PACKAGE_FILE_NAME "" diff --git a/README.md b/README.md index e65c73f4..964d2e40 100644 --- a/README.md +++ b/README.md @@ -395,10 +395,11 @@ providing versions for projects using `superbuild_set_revision`, usually for the configure, build and install superbuild project that are usually added in `projects.cmake`. `package.cmake` is an optional file that is included at the configuration phase during the preparation of the packaging -and is expected to append ParaView plugins to the `paraview_additional_plugins` CMake variable, eg: +and is expected to append ParaView plugins and python modules to the dedicated CMake variables, eg: ``` list(APPEND paraview_additional_plugins myParaViewPlugin) +list(APPEND paraview_additional_python_modules myModule) ``` `cmake/CTestCustom.cmake` is an optional file of the same type as the superbuild own `cmake/CTestCustom.cmake`. diff --git a/projects/paraview.bundle.common.cmake b/projects/paraview.bundle.common.cmake index 99fde4b9..52671e14 100644 --- a/projects/paraview.bundle.common.cmake +++ b/projects/paraview.bundle.common.cmake @@ -170,6 +170,8 @@ if (WIN32) check_for_python_module(pywin32 win32comext) endif () +list(APPEND python_modules ${paraview_additional_python_modules}) + function (paraview_add_plugin output) set(contents "\n\n\n") foreach (name IN LISTS ARGN) -- GitLab