VTKSDKModuleBuilder.cmake

vtksdk_build_modules

Find, build and wrap VTK modules for VTK-SDK based wheels.

  • package_name is the name of the python package, that will be used to name the folder inside site-packages.

  • MODULES list of modules to build, must be non-empty.

  • SOURCE_DIR is the root for vtk.module search paths, default to ${CMAKE_SOURCE_DIR}.

  • ENABLE_TESTS build testing of modules, default to “OFF”.

  • STATIC if specified native libraries are build as static libraries, otherwise as shared (recommanded).

  • LAYOUT Use SDK when building a SDK package. Default to “Runtime”.

  • DEPENDENCIES packages this package depends on, used to correct RPATHs.

vtksdk_build_modules(<package_name>
  [SOURCE_DIR <path>]
  [ENABLE_TESTS <TRUE_VALUE|FALSE_VALUE>]
  [LAYOUT <Runtime|SDK>]
  [STATIC]
  [DEPENDENCIES <packages...>]
  MODULES <module>...
  )