pybind11_demo/make.py

12 lines
263 B
Python
Raw Normal View History

2024-06-16 10:06:49 +00:00
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()
)