diff --git a/CMakeLists.txt b/CMakeLists.txt index 6802243b53721f17398c900e1056eb55a18962a1..5bacbe7647a7855b9a9a9fc2a161172dbd453908 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 e65c73f4fd5bb33753ecd0a2e84aa05b26e0dc59..964d2e40230e31c9e0d3724213622092d2af1375 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 99fde4b9475ab04caa72f59310363fbdc298f317..52671e1430b7ac1421f015aba3aa96cc64d3ca09 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)