-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (18 loc) · 1.06 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cmake_minimum_required(VERSION 3.15...3.26)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20")
set(CMAKE_CXX_STANDARD 20)
project(
${SKBUILD_PROJECT_NAME}
VERSION ${SKBUILD_PROJECT_VERSION}
LANGUAGES CXX)
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
find_package(pybind11 CONFIG REQUIRED)
file (GLOB SOURCE_FILES "src/*.cpp")
file (GLOB HEADER_FILES "src/include/*.hpp")
file (GLOB EDLIB_SRC "src/edlib/src/edlib.cpp")
file (GLOB EDLIB_HEADER "src/edlib/include/edlib.h")
#python_add_library(sequence_analysis_cpp MODULE src/utils.cpp src/genome_map.cpp src/orf.cpp src/pairwise_aligner.cpp src/sam_file.cpp src/seq_set.cpp src/sequence.cpp src/sequence_analysis.cpp WITH_SOABI)
python_add_library(sequence_analysis_cpp MODULE ${SOURCE_FILES} ${HEADER_FILES} ${EDLIB_SRC} ${EDLIB_HEADER} WITH_SOABI)
target_link_libraries(sequence_analysis_cpp PRIVATE pybind11::headers )
target_compile_definitions(sequence_analysis_cpp PRIVATE VERSION_INFO=${PROJECT_VERSION})
install(TARGETS sequence_analysis_cpp DESTINATION sequence_analysis)