-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
83 lines (68 loc) · 1.95 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
cmake_minimum_required(VERSION 3.11)
project(ratlesnake VERSION 0.5.5
LANGUAGES CXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
include(FetchContent)
include(GNUInstallDirs)
find_package(bioparser 3.0.13 QUIET)
if (NOT bioparser_FOUND)
FetchContent_Declare(
bioparser
GIT_REPOSITORY https://github.com/rvaser/bioparser
GIT_TAG 3.0.13)
FetchContent_GetProperties(bioparser)
if (NOT bioparser_POPULATED)
FetchContent_Populate(bioparser)
add_subdirectory(
${bioparser_SOURCE_DIR}
${bioparser_BINARY_DIR}
EXCLUDE_FROM_ALL)
endif ()
endif ()
find_package(edlib 1.2.6 QUIET)
if (NOT edlib_FOUND)
if (racon_install)
message(FATAL_ERROR "Missing package edlib!")
endif ()
FetchContent_Declare(
edlib
GIT_REPOSITORY https://github.com/martinsos/edlib
GIT_TAG d5774b4)
FetchContent_GetProperties(edlib)
if (NOT edlib_POPULATED)
FetchContent_Populate(edlib)
add_subdirectory(
${edlib_SOURCE_DIR}
${edlib_BINARY_DIR}
EXCLUDE_FROM_ALL)
endif ()
endif ()
find_package(ram 2.0.0 QUIET)
if (NOT ram_FOUND)
FetchContent_Declare(
ram
GIT_REPOSITORY https://github.com/lbcb-sci/ram
GIT_TAG 7597511)
FetchContent_GetProperties(ram)
if (NOT ram_POPULATED)
FetchContent_Populate(ram)
add_subdirectory(
${ram_SOURCE_DIR}
${ram_BINARY_DIR}
EXCLUDE_FROM_ALL)
endif ()
endif ()
add_executable(ratlesnake
src/main.cpp)
target_link_libraries(ratlesnake
bioparser::bioparser
edlib::edlib
ram::ram)
target_compile_definitions(ratlesnake PRIVATE VERSION="${PROJECT_VERSION}")
install(TARGETS ratlesnake DESTINATION ${CMAKE_INSTALL_BINDIR})