CMake wrapper for swig / Python

qi_swig_wrap_python(module_name interface_file [SRC <src> ...]
    [DEPENDS <depends> ...]
)
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

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.