VTKSDKModuleSDK.cmake¶
- (PRIVATE) _vtksdk_generate_install_root_code¶
This generate a code sample inject in the real config module to determine the install tree root. The strategy is similar to the one used by CMakePackageConfigHelpers. We start at the current list file, i.e. the config module, then do get_filename_component(PATH) recusively based on the install location of the config module itself.
- vtksdk_install_modules_sdk¶
Generate config module, config module version, and scikit-build-core entry-point and install them.
package_name is the name of the python package, that will be used to name the folder inside site-packages.
COMPATIBILITY same as CMakePackageConfigHelpers, default to AnyNewerVersion
EXTERNAL_DEPENDENCIES additional name to find_dependency() from generated config module
CMAKE_MODULES additional files to add to the CMake folder
CMAKE_MODULES_INCLUDED additional files to add to the CMake folder, they will be included by the config module automatically
- PREFIX_PATHS additional prefix paths added to the CMAKE_PREFIX_PATH,
before including the vtk-find-packages script and EXTERNAL_DEPENDENCIES find_package
MODULES list of modules to build, must be non-empty.
vtksdk_install_modules_sdk(<package_name>
[COMPATIBILITY <AnyNewerVersion|SameMajorVersion|SameMinorVersion|ExactVersion>]
[EXTERNAL_DEPENDENCIES <package-names>...]
[CMAKE_MODULES <files...>]
[CMAKE_MODULES_INCLUDED <files...>]
[PREFIX_PATHS <paths...>]
MODULES <module>...
)