Commit b46fda50 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] add fooClass to test-cython

parent 47b83a99
Pipeline #16863 failed with stage
in 1 minute and 41 seconds
......@@ -49,12 +49,12 @@ SET(plugins
add_custom_command(OUTPUT
${CMAKE_CURRENT_SOURCE_DIR}/libs/__init__.c
${CMAKE_CURRENT_SOURCE_DIR}/libs/__init__${PYTHON_SOABI}
${CMAKE_CURRENT_SOURCE_DIR}/libs/__init__${PYTHON_SOABI}.so
${CMAKE_CURRENT_SOURCE_DIR}/libs/sum.c
${CMAKE_CURRENT_SOURCE_DIR}/libs/sum${PYTHON_SOABI}
${CMAKE_CURRENT_SOURCE_DIR}/libs/sum${PYTHON_SOABI}.so
${CMAKE_CURRENT_SOURCE_DIR}/fooClass_api.h
${CMAKE_CURRENT_SOURCE_DIR}/fooClass.cpp
${CMAKE_CURRENT_SOURCE_DIR}/fooClass${PYTHON_SOABI}
${CMAKE_CURRENT_SOURCE_DIR}/fooClass${PYTHON_SOABI}.so
${CMAKE_CURRENT_SOURCE_DIR}/fooClass.h
COMMAND ${PYTHON_EXECUTABLE} setup.py build_ext --inplace
DEPENDS
......@@ -112,6 +112,7 @@ FOREACH(plugin ${plugins})
ENDIF(BUILD_PYTHON_INTERFACE)
ENDFOREACH(plugin)
target_sources(test-cython PRIVATE fooClass_api.h fooClass.cpp)
target_include_directories(test-cython PRIVATE ${PYTHON_INCLUDE_DIRS} ${NUMPY_INCLUDE_DIRS})
target_link_libraries(test-cython PUBLIC ${PYTHON_LIBRARIES})
......
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