-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
42 lines (25 loc) · 837 Bytes
/
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
cmake_minimum_required(VERSION 3.5)
project(concurrency_primitives )
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_compile_options("-O3")
include_directories( include )
add_executable(condition_variable
main.cpp
)
target_link_libraries(condition_variable pthread rt)
add_executable(auto_reset_event
autoresetevent_main.cpp)
target_link_libraries(auto_reset_event pthread rt)
add_executable(test_locks
test_locks.cpp)
target_link_libraries(test_locks pthread rt)
add_executable(test_semaphores
test_semaphores.cpp)
target_link_libraries(test_semaphores pthread rt)
add_executable(test_waitset_mk2
test_waitset_mk2.cpp)
target_link_libraries(test_waitset_mk2 pthread rt)
add_executable(test_waitset_pub_sub
test_waitset_pub_sub.cpp)
target_link_libraries(test_waitset_pub_sub pthread rt)