-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
56 lines (44 loc) · 1.85 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
# =============================================================================
# sifter
# =============================================================================
set(PROJECT_NAME_STR sifter)
cmake_minimum_required( VERSION 3.9 FATAL_ERROR )
project( ${PROJECT_NAME_STR} VERSION 0.0.1 LANGUAGES CXX )
# -----------------------------------------------------------------------------
# dependencies and 3rd party libraries
# -----------------------------------------------------------------------------
set (PROGRAM_SUBMODULES_DIR
"${CMAKE_CURRENT_LIST_DIR}/lib"
CACHE STRING "Directory containing submodules."
)
# Specify the directories where to store the built archives, libraries and executables
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
set (CMAKE_INSTALL_BINDIR "bin")
set (CPM_INDENT "CMake Package Manager CPM: ")
include (${PROJECT_SOURCE_DIR}/cmake/CPM.cmake)
CPMUsePackageLock (${PROJECT_SOURCE_DIR}/cmake/package-lock.cmake)
CPMGetPackage (seqan3)
CPMGetPackage (plog)
# Require OPENMP
find_package(OpenMP REQUIRED)
# -----------------------------------------------------------------------------
# install
# -----------------------------------------------------------------------------
include_directories(
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/lib/include
)
file(GLOB_RECURSE SRC_FILES
${PROJECT_SOURCE_DIR}/src/*.cpp
)
add_executable(${PROJECT_NAME} ${SRC_FILES}
src/main.cpp
)
target_link_libraries(${PROJECT_NAME} seqan3::seqan3 plog::plog OpenMP::OpenMP_CXX)
#target_link_libraries(${PROJECT_NAME} seqan3::seqan3 plog::plog)
# enable_testing()
# add_subdirectory(test)
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)