13 lines
377 B
Python
13 lines
377 B
Python
from pymake import *
|
|
|
|
|
|
(
|
|
cmake("3.15")
|
|
.set(cmake_export_compile_commands, on)
|
|
.project("test_pybind11")
|
|
.file("SRC",glob_recurse,"src/*.cpp")
|
|
.just_add("""find_package(Python 3.12.3 COMPONENTS Interpreter Development REQUIRED)""")
|
|
.just_add("find_package(pybind11 CONFIG REQUIRED)")
|
|
.pybind11_add_module(var(project_name),var("SRC"))
|
|
.write()
|
|
) |