niketagrawal / pybind_project_example

A sandbox repository to experiment structuring files and folders in projects that use pybind11 to create a python wrapper for a C++ code base with CMake based build system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A sandbox repository to experiment structuring files and folders in projects that use pybind11 to create a python wrapper for a C++ code base with CMake based build system.

Building cpp executable

  1. Clone the repository
  2. mkdir build/
  3. cd build/
  4. cmake ..
  5. make
  6. ./main

Building python extension module

  1. Clone the repository
  2. pip install .
  3. Open python interpreter
import pybind_project_example
pybind_project_example.add(3,4)

Acknowledgements

This example uses the pybind/scikit_build_example as the starting point.

About

A sandbox repository to experiment structuring files and folders in projects that use pybind11 to create a python wrapper for a C++ code base with CMake based build system.

License:Other


Languages

Language:CMake 56.9%Language:C++ 37.8%Language:Python 5.3%