File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[submodule "doxygen-awesome-css "]
22 path = doxygen-awesome-css
33 url = https://github.com/jothepro/doxygen-awesome-css.git
4+ [submodule "pyudmaio/pybind11 "]
5+ path = pyudmaio/pybind11
6+ url = git@github.com:pybind/pybind11.git
Original file line number Diff line number Diff line change @@ -104,6 +104,19 @@ if(BUILD_TESTING)
104104 endforeach ()
105105endif ()
106106
107+ # The python binding is usually installed via setuptools;
108+ # we include the C++ part of it here only to populate the compile-command.json for editors/IDEs
109+ if (EXISTS "${CMAKE_CURRENT_LIST_DIR} /pyudmaio/pybind11/CMakeLists.txt" )
110+ message ("pybind11 submodule found, adding pyudmaio target" )
111+ add_subdirectory ("${CMAKE_CURRENT_LIST_DIR} /pyudmaio/pybind11" )
112+ pybind11_add_module (pyudmaio EXCLUDE_FROM_ALL
113+ "${CMAKE_CURRENT_LIST_DIR} /pyudmaio/src/PythonBinding.cpp"
114+ "${CMAKE_CURRENT_LIST_DIR} /pyudmaio/src/DataHandlerPython.cpp"
115+ )
116+ else ()
117+ message ("skipping python binding, clone pybind11 submodule to include it" )
118+ endif ()
119+
107120# Create debian package containing library
108121set (CPACK_GENERATOR "DEB" )
109122set (CPACK_DEBIAN_PACKAGE_MAINTAINER "Patrick Huesmann <patrick.huesmann@desy.de>" )
You can’t perform that action at this time.
0 commit comments