VTK
9.2.6
|
Functions | |
function | vtk_module_python_default_destination (var) |
Determine Python module destination. | |
function | vtk_module_wrap_python () |
Wrap a set of modules for use in Python. | |
function | vtk_module_add_python_package (name) |
Install Python packages with a module. | |
function | vtk_module_add_python_module (name) |
Use a Python package as a module. |
function vtk_module_python_default_destination | ( | var | ) |
Determine Python module destination.
Some projects may need to know where Python expects its modules to be placed in the install tree (assuming a shared prefix). This function computes the default and sets the passed variable to the value in the calling scope.
By default, the destination is ${CMAKE_INSTALL_BINDIR}/Lib/site-packages on Windows and ${CMAKE_INSTALL_LIBDIR}/python<VERSION>/site-packages otherwise.
<MAJOR_VERSION> must be one of 2 or 3. If not specified, it defaults to the value of ${VTK_PYTHON_VERSION}.
Definition at line 46 of file vtkModuleWrapPython.cmake.
function vtk_module_wrap_python | ( | ) |
Wrap a set of modules for use in Python.
Definition at line 616 of file vtkModuleWrapPython.cmake.
function vtk_module_add_python_package | ( | name | ) |
Install Python packages with a module.
Some modules may have associated Python code. This function should be used to install them.
The <module> argument must match the associated VTK module that the package is with. Each package is independent and should be installed separately. That is, package and package.subpackage should each get their own call to this function.
A <module>-<package> target is created which ensures that all Python modules have been copied to the correct location in the build tree.
Definition at line 1094 of file vtkModuleWrapPython.cmake.
function vtk_module_add_python_module | ( | name | ) |
Use a Python package as a module.
If a module is a Python package, this function should be used instead of vtk_module_add_module.
Definition at line 1192 of file vtkModuleWrapPython.cmake.