-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
48 lines (36 loc) · 1.1 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
# ---------------------------------------------------------------------------- #
# emDNA CMake project
#
# Nicolas Clauvelin (n.clauvelin@gmail.com)
#
# ---------------------------------------------------------------------------- #
# --- Project setup ---
# CMake minimal version.
cmake_minimum_required(VERSION 3.13)
# Support for ccache.
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_PROGRAM}
CACHE STRING "(emDNA) C compiler ccache program" FORCE)
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE_PROGRAM}
CACHE STRING "(emDNA) C++ compiler ccache program" FORCE)
message("C/C++ compiler ccache: ${CCACHE_PROGRAM}")
endif()
# Define project.
project(emDNA C CXX)
# Enforce C++14 standard.
set(CMAKE_CXX_STANDARD 14)
# Enforce C99 standard.
set(CMAKE_C_STANDARD 99)
# --- Project components ---
# Dependencies.
include(deps/alglib.cmake)
include(deps/cereal.cmake)
include(deps/eigen.cmake)
include(deps/googletest.cmake)
include(deps/nanoflann.cmake)
include(deps/tclap.cmake)
# DNASim
add_subdirectory(DNASim/)
# emDNA
add_subdirectory(emDNA/)