-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
62 lines (54 loc) · 1.22 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
cmake_minimum_required(VERSION 3.14)
project(ruptura LANGUAGES CXX)
# Set the C++ standard to C++17
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Include directories
include_directories(src)
# Compiler flags
set(CXX_COMPILE_FLAGS
-g
-O3
-march=native
-ffast-math
-Wall
-Wextra
-Wshadow
-Wnon-virtual-dtor
-Wold-style-cast
-Wcast-align
-Wunused
-Woverloaded-virtual
-Wpedantic
-Wconversion
-Wsign-conversion
-Wnull-dereference
-Wdouble-promotion
-Wformat=2
-Werror
-fomit-frame-pointer
-ftree-vectorize
-fno-stack-check
-funroll-loops
)
# Collect source files
set(SOURCES
src/breakthrough.cpp
src/component.cpp
src/fitting.cpp
src/inputreader.cpp
src/isotherm.cpp
src/mixture_prediction.cpp
src/multi_site_isotherm.cpp
src/random_numbers.cpp
src/special_functions.cpp
)
# -------------------------------
# Build the ruptura executable
# -------------------------------
add_executable(ruptura src/main.cpp ${SOURCES})
target_compile_options(ruptura PRIVATE ${CXX_COMPILE_FLAGS})
# -------------------------------
# Doxygen Documentation
# -------------------------------
add_subdirectory(docs)