Skip to content
Snippets Groups Projects
Commit 499d059c authored by Martin Larralde's avatar Martin Larralde
Browse files

Fix issue in `CythonExtension` script on missing `.pxd` file

parent dff7b8c6
No related branches found
No related tags found
No related merge requests found
...@@ -9,3 +9,4 @@ destatic(../vendor/hmmer/src/p7_hmmfile.c ${CMAKE_CURRENT_BINARY_DIR}/hmmer/src/ ...@@ -9,3 +9,4 @@ destatic(../vendor/hmmer/src/p7_hmmfile.c ${CMAKE_CURRENT_BINARY_DIR}/hmmer/src/
add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/easel ${CMAKE_CURRENT_BINARY_DIR}/easel/build) add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/easel ${CMAKE_CURRENT_BINARY_DIR}/easel/build)
add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/hmmer ${CMAKE_CURRENT_BINARY_DIR}/hmmer/build) add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/hmmer ${CMAKE_CURRENT_BINARY_DIR}/hmmer/build)
add_subdirectory(pyhmmer)
...@@ -100,7 +100,11 @@ macro(cython_extension _name) ...@@ -100,7 +100,11 @@ macro(cython_extension _name)
string(REPLACE "/" "." _target ${_dest_folder}.${_name}) string(REPLACE "/" "." _target ${_dest_folder}.${_name})
# Add Python module # Add Python module
python_add_library(${_target} MODULE WITH_SOABI ${_name}.pyx ${_name}.pxd ${_name}.c) set(EXTENSION_SOURCES ${_name}.pyx ${_name}.c)
if(EXISTS ${_name}.pxd)
set(EXTENSION_SOURCES ${EXTENSION_SOURCES} ${_name}.pxd)
endif()
python_add_library(${_target} MODULE WITH_SOABI ${EXTENSION_SOURCES})
set_target_properties(${_target} PROPERTIES OUTPUT_NAME ${_name} ) set_target_properties(${_target} PROPERTIES OUTPUT_NAME ${_name} )
target_include_directories(${_target} AFTER PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories(${_target} AFTER PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(${_target} PUBLIC ${CYTHON_EXTENSION_LINKS}) target_link_libraries(${_target} PUBLIC ${CYTHON_EXTENSION_LINKS})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment