An example pybind11 module built with a CMake-based build system. This is useful for C++ codebases that have an existing CMake project structure.
On Linux
- A compiler with C++11 support
- CMake >=3.4
git clone --recursive https://github.com/junlileeds/pybind11_cmake_example.git
pip3 install ./pybind11_cmake_example
python3
import pybind11_cmake_example
pybind11_cmake_example.add(1,2)
pybind11_cmake_example.subtract(2,1)