Skip to content

LeWimbes/cmake_pybind11_project_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMake & pybind11 Project Template

Inspired by pybind11's official cmake template (https://github.com/pybind/cmake_example), this project is intended to get you (and me) started with a C++ project with a complex project structure and Python bindings using pybind11.

This project has been tested only on Linux systems.

C++

Build C++ library

cmake -B ./cmake-build/ cmake --build ./cmake-build/

Run C++ tests

./cmake-build/cpp/tests/lib_tests

Python

Install Python bindings

python -m pip install .

Using Python bindings without installation

Build C++ library and copy python/src/my_project.cpython[...] next to python files.

Run Python tests

python -m pytest python/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published