Skip to content
Snippets Groups Projects
Commit 92a7bdbc 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 01231d1f
No related branches found
No related tags found
No related merge requests found
......@@ -2,5 +2,4 @@ add_python_targets(istl
__init__
)
add_library(_istl SHARED _istl.cc)
set_target_properties(_istl PROPERTIES PREFIX "")
dune_add_pybind11_module(NAME _istl CMAKE_GUARD dune-istl_FOUND)
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