forked from anujra/rings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
72 lines (58 loc) · 1.55 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
cmake_minimum_required (VERSION 3.1.0)
project (rings)
# Set Configuration specific DEFINES
IF ( CMAKE_BUILD_TYPE STREQUAL "Debug" )
add_definitions ( "-DUSE_PERFORMANCE_DATA")
add_definitions ( "-DDEBUG " )
add_definitions ( "-D_DEBUG " )
add_definitions ( "-std=c++20")
add_definitions ( "-rdynamic ")
add_definitions ( "-g ")
add_definitions ( "-Wno-deprecated ")
add_definitions ( "-Wno-unknown-pragmas ")
ELSE()
add_definitions ( "-Wall ")
add_definitions ( "-DNDEBUG " )
add_definitions ( "-DUSE_PERFORMANCE_DATA")
add_definitions ( "-O3 ")
add_definitions ( "-std=c++20")
add_definitions ( "-march=native ")
add_definitions ( "-mtune=native ")
add_definitions ( "-Wno-deprecated ")
add_definitions ( "-Wno-unknown-pragmas ")
add_definitions ( "-rdynamic ")
add_definitions ( "-g ")
ENDIF()
include_directories (/usr/include)
include_directories (/usr/local/include)
link_directories (/usr/lib)
link_directories (/usr/local/lib)
add_executable (hello
hello/hello.cpp)
add_executable (ex01
ex01/ex01.cpp)
add_executable (ex02
ex02/src/fractions.cpp
ex02/src/decimal.cpp
ex02/src/ex02.cpp)
add_executable (ex03
ex02/src/fractions.cpp
ex02/src/decimal.cpp
ex02/src/ex03.cpp)
add_executable (analysis
analysis/src/main.cpp
analysis/src/calc_mean.cpp
analysis/src/calc_sum.cpp
)
add_executable (double
double/main.cpp
)
target_link_libraries(double pthread)
add_executable (edu
edu/main.cpp
)
target_link_libraries(edu pthread)
add_executable (ring00
ring00/main.cpp
)
target_link_libraries(ring00 pthread)