native logging for python

This commit is contained in:
alexander-g 2021-01-24 12:12:51 +01:00
parent 661a50e62d
commit 059221a7de
5 changed files with 98 additions and 51 deletions

View file

@ -124,3 +124,12 @@ if(KOMPUTE_OPT_INSTALL)
DESTINATION lib/cmake/kompute)
endif()
if(KOMPUTE_OPT_BUILD_PYTHON)
include_directories(${PROJECT_SOURCE_DIR}/python/pybind11/include)
if (WIN32)
execute_process(COMMAND CMD /c python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())" OUTPUT_VARIABLE PYTHON_INCLUDE_DIR)
else()
execute_process(COMMAND python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())" OUTPUT_VARIABLE PYTHON_INCLUDE_DIR)
endif()
include_directories(${PYTHON_INCLUDE_DIR})
endif()