1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-26 12:08:52 -05:00

Update CMakeLists.txt

This commit is contained in:
Andrej Prochazka 2021-05-17 15:49:00 +02:00 committed by GitHub
parent e3753f6443
commit a75c42ac22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,8 +103,12 @@ if(PYTHON_MODULE)
if(NOT PYTHONINTERP_FOUND)
MESSAGE(SEND_ERROR "Python is required to build nurex python modules")
endif(NOT PYTHONINTERP_FOUND)
find_package(pybind11 REQUIRED)
set(PYBIND11_CPP_STANDARD -std=c++14)
find_package(pybind11 QUIET)
if(NOT pybind11_FOUND)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/extern/pybind11)
endif(NOT pybind11_FOUND)
#set(PYBIND11_CPP_STANDARD -std=c++14)
pybind11_add_module(pycatima pymodule/pycatima)
target_include_directories(pycatima PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>