Skip to content
Snippets Groups Projects
Commit f0b71e8f authored by Martin Nolte's avatar Martin Nolte
Browse files

[cmake] add macro dune_add_pybind11_module

Building Python modules through Pybind11 is a recurring task in our
Python bindings. To reduce maintainance in the build system, we introduce
a CMake function "dune_add_pybind11_module", which is semantically inspired
by the "dune_add_test" function.
parent 4a51c3d4
No related branches found
No related tags found
No related merge requests found
......@@ -8,5 +8,4 @@ add_python_targets(common
project
)
add_library(_common SHARED _common.cc)
set_target_properties(_common PROPERTIES PREFIX "")
dune_add_pybind11_module(NAME _common)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment