Go to file
2024-06-16 18:10:40 +08:00
.gitignore startup 2024-06-16 18:06:49 +08:00
CMakeLists.txt startup 2024-06-16 18:06:49 +08:00
LICENSE Initial commit 2024-06-16 10:02:47 +00:00
main.cpp startup 2024-06-16 18:06:49 +08:00
make.py startup 2024-06-16 18:06:49 +08:00
README.md update readme 2024-06-16 18:10:40 +08:00

pybind11_demo

A demo shows how to write python with c++

# make.py
from pymake import *


(
    cmake("3.15")
    .set("PYBIND11_FINDPYTHON", on)
    .set(cmake_export_compile_commands, on)
    .project("test_pybind11")
    .find_package("pybind11","REQUIRED")
    .pybind11_add_module(var(project_name),"main.cpp")
    .write()
)