4 ms·
I created a CMake package that autogenerates Python bindings for annotated C++ functions. If you have a C++ static lib in CMake, it takes two more lines of CMa
by dr_traktor 5y ago
I created a CMake package that autogenerates Python bindings for annotated C++ functions.
If you have a C++ static lib in CMake, it takes two more lines of CMake to generate a Python extension module, and a single line of annotation per C++ function that you want to export.
https://github.com/bebump/bbmp_interop https://github.com/bebump/bbmp_interop
I use it mostly for testing numerical C++ code using Numpy and Scipy.