VTKSDKPackageInit.cmake

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:

@PACKAGE_INIT@
@PACKAGE_UNINIT@
vtksdk_generate_package_init(<package_name>
  [INPUT <path> | CONTENT <content>]
  [DEPENDENCIES <packages...>]
  MODULES <module>...
  )