-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
67 lines (49 loc) · 1.18 KB
/
Copy pathCMakeLists.txt
File metadata and controls
67 lines (49 loc) · 1.18 KB
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
# [....... [..[..[.. [..
# [.. [..[. [..
# [.. [..[. [..
# [.. [..[... [.
# [.. [..[. [..
# [.. [..[. [.
# [...........[..[.... [..
cmake_minimum_required(VERSION 3.7...3.18 FATAL_ERROR)
project(ZIB, CXX)
set(CMAKE_CXX_FLAGS_DEBUG "-DDEBUG -O0 -g")
set(CMAKE_CXX_FLAGS_RELEASE "-DRELEASE -O3 -g")
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -fuse-linker-plugin")
enable_testing()
add_executable(test-mpsc_queues test/test-mpsc_queues.cpp)
target_compile_options(test-mpsc_queues PUBLIC
-pthread
-fcoroutines
-g
-Wall
-Wextra
)
target_link_libraries(
test-mpsc_queues PUBLIC
-lpthread -latomic
)
target_include_directories(test-mpsc_queues PUBLIC
includes
)
add_test(
NAME test-mpsc_queues
COMMAND test-mpsc_queues
)
add_executable(mpsc-benchmark benchmarks/benchmarks.cpp)
target_compile_options(mpsc-benchmark PUBLIC
-pthread
-fcoroutines
-g
-Wall
-Wextra
)
target_link_libraries(
mpsc-benchmark PUBLIC
-lpthread -latomic
)
target_include_directories(mpsc-benchmark PUBLIC
includes
benchmarks
)