-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt_02concurrency
123 lines (123 loc) · 6.61 KB
/
CMakeLists.txt_02concurrency
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# CMake 最低版本号要求
cmake_minimum_required(VERSION 2.8)
# 使用C++17
set(CMAKE_CXX_STANDARD 17)
# 项目信息
project(My_Cplusplus17)
# 指定boost
set(Boost_USE_STATIC_LIBS ON) # enable dynamic linking
set(Boost_USE_MULTITHREAD ON) # enable multithreading
# windows 下设置这两个路径,find_package才能找到Boost
SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "D:/Development_Install/Library/boost_1_68_0")
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "D:/Development_Install/Library/boost_1_68_0/stage/lib")
#
find_package(Boost)
if (NOT Boost_FOUND)
message("not found boost package")
else ()
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
LINK_DIRECTORIES(${CMAKE_LIBRARY_PATH})
endif ()
# 指定生成目标
add_executable(main main.cpp)
####################(2)concurrency####################
##########example00##########
#add_executable(Ex00_01 02_concurrency/example00/Ex00_01.cpp)
#add_executable(Ex00_02 02_concurrency/example00/Ex00_02.cpp)
#add_executable(Ex00_03 02_concurrency/example00/Ex00_03.cpp)
#add_executable(Ex00_04 02_concurrency/example00/Ex00_04.cpp)
#add_executable(Ex00_05 02_concurrency/example00/Ex00_05.cpp)
#add_executable(Ex00_06 02_concurrency/example00/Ex00_06.cpp)
#add_executable(Ex00_07 02_concurrency/example00/Ex00_07.cpp)
#add_executable(Ex00_08 02_concurrency/example00/Ex00_08.cpp)
#add_executable(Ex00_09 02_concurrency/example00/Ex00_09.cpp)
##########example01##########
#add_executable(Ex01_01 02_concurrency/example01/Ex01_01.cpp)
#add_executable(Ex01_02 02_concurrency/example01/Ex01_02.cpp)
#add_executable(Ex01_03 02_concurrency/example01/Ex01_03.cpp)
#add_executable(Ex01_04 02_concurrency/example01/Ex01_04.cpp)
#add_executable(Ex01_05 02_concurrency/example01/Ex01_05.cpp)
#add_executable(Ex01_06 02_concurrency/example01/Ex01_06.cpp)
#add_executable(Ex01_07 02_concurrency/example01/Ex01_07.cpp)
#add_executable(Ex01_08 02_concurrency/example01/Ex01_08.cpp)
#add_executable(Ex01_09 02_concurrency/example01/Ex01_09.cpp)
#add_executable(Ex01_10 02_concurrency/example01/Ex01_10.cpp)
#add_executable(Ex01_11 02_concurrency/example01/Ex01_11.cpp)
#add_executable(Ex01_12 02_concurrency/example01/Ex01_12.cpp)
##########example02##########
#add_executable(Ex02_01 02_concurrency/example02/Ex02_01.cpp)
#add_executable(Ex02_02 02_concurrency/example02/Ex02_02.cpp)
#add_executable(Ex02_03 02_concurrency/example02/Ex02_03.cpp)
#add_executable(Ex02_04 02_concurrency/example02/Ex02_04.cpp)
#add_executable(Ex02_05 02_concurrency/example02/Ex02_05.cpp)
#add_executable(Ex02_06 02_concurrency/example02/Ex02_06.cpp)
#add_executable(Ex02_07 02_concurrency/example02/Ex02_07.cpp)
#add_executable(Ex02_08 02_concurrency/example02/Ex02_08.cpp)
#add_executable(Ex02_09 02_concurrency/example02/Ex02_09.cpp)
#add_executable(Ex02_10 02_concurrency/example02/Ex02_10.cpp)
#add_executable(Ex02_11 02_concurrency/example02/Ex02_11.cpp)
##########example03##########
#add_executable(Ex03_01 02_concurrency/example03/Ex03_01.cpp)
#add_executable(Ex03_02 02_concurrency/example03/Ex03_02.cpp)
#add_executable(Ex03_03 02_concurrency/example03/Ex03_03.cpp)
#add_executable(Ex03_04 02_concurrency/example03/Ex03_04.cpp)
#add_executable(Ex03_05 02_concurrency/example03/Ex03_05.cpp)
#add_executable(Ex03_06 02_concurrency/example03/Ex03_06.cpp)
#add_executable(Ex03_07 02_concurrency/example03/Ex03_07.cpp)
#add_executable(Ex03_08 02_concurrency/example03/Ex03_08.cpp)
#add_executable(Ex03_09 02_concurrency/example03/Ex03_09.cpp)
#add_executable(Ex03_10 02_concurrency/example03/Ex03_10.cpp)
#add_executable(Ex03_11 02_concurrency/example03/Ex03_11.cpp)
#add_executable(Ex03_12 02_concurrency/example03/Ex03_12.cpp)
#add_executable(Ex03_13 02_concurrency/example03/Ex03_13.cpp)
##########example04##########
#add_executable(Ex04_01 02_concurrency/example04/Ex04_01.cpp)
#add_executable(Ex04_02 02_concurrency/example04/Ex04_02.cpp)
#add_executable(Ex04_03 02_concurrency/example04/Ex04_03.cpp)
#add_executable(Ex04_04 02_concurrency/example04/Ex04_04.cpp)
#add_executable(Ex04_05 02_concurrency/example04/Ex04_05.cpp)
#add_executable(Ex04_06 02_concurrency/example04/Ex04_06.cpp)
#add_executable(Ex04_07 02_concurrency/example04/Ex04_07.cpp)
#add_executable(Ex04_08 02_concurrency/example04/Ex04_08.cpp)
#add_executable(Ex04_09 02_concurrency/example04/Ex04_09.cpp)
#add_executable(Ex04_10 02_concurrency/example04/Ex04_10.cpp)
#add_executable(Ex04_11 02_concurrency/example04/Ex04_11.cpp)
#add_executable(Ex04_12 02_concurrency/example04/Ex04_12.cpp)
#add_executable(Ex04_13 02_concurrency/example04/Ex04_13.cpp)
##########example05##########
#add_executable(Ex05_01 02_concurrency/example05/Ex05_01.cpp)
#add_executable(Ex05_02 02_concurrency/example05/Ex05_02.cpp)
#add_executable(Ex05_03 02_concurrency/example05/Ex05_03.cpp)
#add_executable(Ex05_04 02_concurrency/example05/Ex05_04.cpp)
#add_executable(Ex05_05 02_concurrency/example05/Ex05_05.cpp)
#add_executable(Ex05_06 02_concurrency/example05/Ex05_06.cpp)
#add_executable(Ex05_07 02_concurrency/example05/Ex05_07.cpp)
#add_executable(Ex05_08 02_concurrency/example05/Ex05_08.cpp)
#add_executable(Ex05_09 02_concurrency/example05/Ex05_09.cpp)
#add_executable(Ex05_10 02_concurrency/example05/Ex05_10.cpp)
#add_executable(Ex05_11 02_concurrency/example05/Ex05_11.cpp)
#add_executable(Ex05_12 02_concurrency/example05/Ex05_12.cpp)
#add_executable(Ex05_13 02_concurrency/example05/Ex05_13.cpp)
#add_executable(Ex05_14 02_concurrency/example05/Ex05_14.cpp)
#add_executable(Ex05_15 02_concurrency/example05/Ex05_15.cpp)
#add_executable(Ex05_16 02_concurrency/example05/Ex05_16.cpp)
#add_executable(Ex05_17 02_concurrency/example05/Ex05_17.cpp)
#add_executable(Ex05_18 02_concurrency/example05/Ex05_18.cpp)
#add_executable(Ex05_19 02_concurrency/example05/Ex05_19.cpp)
#add_executable(Ex05_20 02_concurrency/example05/Ex05_20.cpp)
#add_executable(Ex05_21 02_concurrency/example05/Ex05_21.cpp)
##########example06##########
#add_executable(Ex06_01 02_concurrency/example06/Ex06_01.cpp)
#add_executable(Ex06_02 02_concurrency/example06/Ex06_02.cpp)
#add_executable(Ex06_03 02_concurrency/example06/Ex06_03.cpp)
#add_executable(Ex06_04 02_concurrency/example06/Ex06_04.cpp)
#add_executable(Ex06_05 02_concurrency/example06/Ex06_05.cpp)
#add_executable(Ex06_06 02_concurrency/example06/Ex06_06.cpp)
#add_executable(Ex06_07 02_concurrency/example06/Ex06_07.cpp)
#add_executable(Ex06_08 02_concurrency/example06/Ex06_08.cpp)
#add_executable(Ex06_09 02_concurrency/example06/Ex06_09.cpp)
#add_executable(Ex06_10 02_concurrency/example06/Ex06_10.cpp)
#add_executable(Ex06_11 02_concurrency/example06/Ex06_11.cpp)
#add_executable(Ex06_12 02_concurrency/example06/Ex06_12.cpp)
#add_executable(Ex06_13 02_concurrency/example06/Ex06_13.cpp)
##########example07##########