a simple example of using pybind11 to wrap c++ functions and a c++ class.
cmake, python3, pybind11, pytest
# install pybind11 and pytest
pip install pybind11 pytest
- Clone the repository.
- Create a build directory:
mkdir build && cd build
- Generate the build files using CMake:
cmake ..
- Build the project:
make
- Install the project:
make install
run pytest
in the root directory.