-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
44 lines (33 loc) · 1.35 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
cmake_minimum_required (VERSION 3.8)
## CUSTOMISE
# Define the application name and version.
project (RLM VERSION 1.1.0)
## BUILD
# Make Release default build type
if (NOT CMAKE_BUILD_TYPE)
set (CMAKE_BUILD_TYPE Release CACHE STRING
"Choose the type of build, options are: Debug Release RelWithDebInfo"
FORCE)
endif ()
# 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")
# Messages
string (ASCII 27 Esc)
set (FontBold "${Esc}[1m")
set (FontReset "${Esc}[m")
# Dependency: SeqAn3, sharg-parser.
find_package (SeqAn3 QUIET REQUIRED HINTS lib/seqan3/build_system)
find_package (sharg QUIET REQUIRED HINTS lib/sharg-parser/build_system)
# GCC12 and above: Disable warning about std::hardware_destructive_interference_size not being ABI-stable.
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-interference-size")
endif ()
endif ()
add_subdirectory (src)
message (STATUS "${FontBold}You can run `make` to build the application.${FontReset}")
## TEST
enable_testing ()
add_subdirectory (test EXCLUDE_FROM_ALL)