VTKSDKPackageInit.cmake ======================= .. cmake:command:: vtksdk_generate_package_init Configure a __init__.py.in file and install in generated package. To correctly initialize VTK in the context of VTK-SDK we have to import all dependent modules before importing dependent modules. - [`INPUT`|`CONTENT`] input file to configure, optional, see below. - `MODULES` list of modules to build, must be non-empty. Should be the same as the one given to vtksdk_build_modules(). - `DEPENDENCIES` packages this package depends on. Should be the same as the one given to vtksdk_build_modules(). @PACKAGE_INIT@ will be replaced by VTK and package modules import. @PACKAGE_UNINIT@ will be replace by VTK module deletions, so your module won't expose VTK. Configured file is name __init__.py, and it automatically added to your wheel at your package root folder. Default file, used if neither INPUT or CONTENT is specified, is: .. code-block:: @PACKAGE_INIT@ @PACKAGE_UNINIT@ .. code-block:: cmake vtksdk_generate_package_init( [INPUT | CONTENT ] [DEPENDENCIES ] MODULES ... )