From 39828afd55b04cb093a84af36e7caca468d49077 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sat, 8 Feb 2025 16:03:20 -0600 Subject: [PATCH] Add add_pybind11 --- codepy/libraries.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/codepy/libraries.py b/codepy/libraries.py index 42364b5..2bcf84b 100644 --- a/codepy/libraries.py +++ b/codepy/libraries.py @@ -143,6 +143,16 @@ def add_boost_python(toolchain: Toolchain) -> None: ]) +def add_pybind11(toolchain: Toolchain) -> None: + import pybind11 + + toolchain.add_library( + "pybind11", + [pybind11.get_include(False)], + [], + []) + + def add_boost_numeric_bindings(toolchain: Toolchain) -> None: aksetup = get_aksetup_config() toolchain.add_library(