qiBuild documentation

CMake wrapper for swig / Python

qi_swig_wrap_python(module_name interface_file [SRC <src> ...]
    [DEPENDS <depends> ...]
    [SUBFOLDER <subfolder> ...]
)
Arguments:
  • module_name – the target name
  • interface_file – the swig interface file (extension is .i)
  • SRC – The list of source files
  • DEPENDS – The list of dependencies
  • SUBFOLDER – Subfolder where the module will be built. Used to add the wrapper to an existing package.

Create a python wrapping of the C/C++ library

Warning

The module_name must match the name declared in interface_file for instance, if module_name equals foo, foo.i must contain: %module foo

For further details about the install locations, refer to qi_install_python.