Commit bda3faff authored by Baptiste Esteban's avatar Baptiste Esteban
Browse files

WIP CMake fix issue

parent 58d1e98e
Pipeline #26540 passed with stages
in 16 minutes and 41 seconds
......@@ -4,6 +4,8 @@ add_library(Pylena_numpy)
add_library(Pylene::Pylena_numpy ALIAS Pylena_numpy)
target_include_directories(Pylena_numpy PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
# PRIVATE TO REMOVE WHEN cmake_find_package FOR PYBIND11 WILL BE FIXED
PRIVATE
${CONAN_INCLUDE_DIRS_PYBIND11}
${PYTHON_INCLUDE_DIRS})
target_sources(Pylena_numpy PRIVATE src/core/image_cast.cpp
......
# Python module for testing
pybind11_add_module(pylena_test pylena_test.cpp)
target_link_libraries(pylena_test PRIVATE Pylene Pylena_numpy)
target_include_directories(pylena_test PRIVATE ${CONAN_INCLUDE_DIRS_PYBIND11} ${PYTHON_INCLUDE_DIRS}) # TO REMOVE WHEN cmake_find_package FOR PYBIND11 WILL BE FIXED
add_dependencies(build-tests pylena_test)
# Dummy extension for testing
pybind11_add_module(pylena_extension extension_pylena_numpy.cpp)
target_link_libraries(pylena_extension PRIVATE Pylene Pylena_numpy)
target_include_directories(pylena_extension PRIVATE ${CONAN_INCLUDE_DIRS_PYBIND11} ${PYTHON_INCLUDE_DIRS}) # TO REMOVE WHEN cmake_find_package FOR PYBIND11 WILL BE FIXED
add_dependencies(build-tests pylena_extension)
# Sanitizer (clang linked statically asan by default unlike gcc)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment