2021-03-15 21:41:11 +01:00
|
|
|
find_package(pybind11 2.2 CONFIG)
|
|
|
|
|
|
|
|
|
|
if(NOT pybind11_FOUND)
|
2020-04-14 09:15:26 +02:00
|
|
|
add_subdirectory( pybind11 )
|
2021-03-15 21:41:11 +01:00
|
|
|
# SYSTEM is supported for embedded pybind source (>= 2.3.0)
|
|
|
|
|
set(PYBIND11_SYSTEM "SYSTEM")
|
|
|
|
|
elseif(pybind11_VERSION VERSION_GREATER_EQUAL "2.3.0")
|
|
|
|
|
# SYSTEM is only support for pybind >= 2.3.0 (Unfortunately querying the
|
|
|
|
|
# version does not work. AT least we know the embedded one.
|
|
|
|
|
set(PYBIND11_SYSTEM "SYSTEM")
|
2020-04-14 09:15:26 +02:00
|
|
|
endif()
|
2020-05-14 10:51:00 +02:00
|
|
|
add_subdirectory( simulators )
|