-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt_01boost
More file actions
234 lines (234 loc) · 12.1 KB
/
CMakeLists.txt_01boost
File metadata and controls
234 lines (234 loc) · 12.1 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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
# 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)boostexec####################
##########example00##########
#add_executable(Ex00_01 01_boost/example00/Ex00_01.cpp)
#add_executable(Ex00_02 01_boost/example00/Ex00_02.cpp)
#add_executable(Ex00_03 01_boost/example00/Ex00_03.cpp)
#add_executable(Ex00_04 01_boost/example00/Ex00_04.cpp)
#add_executable(Ex00_05 01_boost/example00/Ex00_05.cpp)
##########example01##########
#add_executable(Ex01_01 01_boost/example01/Ex01_01.cpp)
#add_executable(Ex01_02 01_boost/example01/Ex01_02.cpp)
#add_executable(Ex01_03 01_boost/example01/Ex01_03.cpp)
#add_executable(Ex01_04 01_boost/example01/Ex01_04.cpp)
#add_executable(Ex01_05 01_boost/example01/Ex01_05.cpp)
#add_executable(Ex01_06 01_boost/example01/Ex01_06.cpp)
#add_executable(Ex01_07 01_boost/example01/Ex01_07.cpp)
#add_executable(Ex01_08 01_boost/example01/Ex01_08.cpp)
#add_executable(Ex01_09 01_boost/example01/Ex01_09.cpp)
##add_executable(Ex01_10 01_boost/example01/Ex01_10.cpp)
#add_executable(Ex01_11 01_boost/example01/Ex01_11.cpp)
#add_executable(Ex01_12 01_boost/example01/Ex01_12.cpp)
#add_executable(Ex01_13 01_boost/example01/Ex01_13.cpp)
##add_executable(Ex01_14 01_boost/example01/Ex01_14.cpp)
##add_executable(Ex01_15 01_boost/example01/Ex01_15.cpp)
#add_executable(Ex01_16 01_boost/example01/Ex01_16.cpp)
#add_executable(Ex01_17 01_boost/example01/Ex01_17.cpp)
#add_executable(Ex01_18 01_boost/example01/Ex01_18.cpp)
#add_executable(Ex01_19 01_boost/example01/Ex01_19.cpp)
##########example02#########
#add_executable(Ex02_01 01_boost/example02/Ex02_01.cpp)
#add_executable(Ex02_02 01_boost/example02/Ex02_02.cpp)
#add_executable(Ex02_03 01_boost/example02/Ex02_03.cpp)
#add_executable(Ex02_04 01_boost/example02/Ex02_04.cpp)
#add_executable(Ex02_05 01_boost/example02/Ex02_05.cpp)
#add_executable(Ex02_06 01_boost/example02/Ex02_06.cpp)
#add_executable(Ex02_07 01_boost/example02/Ex02_07.cpp)
#add_executable(Ex02_08 01_boost/example02/Ex02_08.cpp)
#add_executable(Ex02_09 01_boost/example02/Ex02_09.cpp)
#add_executable(Ex02_10 01_boost/example02/Ex02_10.cpp)
##########example03##########
#add_executable(Ex03_01 01_boost/example03/Ex03_01.cpp)
#add_executable(Ex03_02 01_boost/example03/Ex03_02.cpp)
#add_executable(Ex03_03 01_boost/example03/Ex03_03.cpp)
#add_executable(Ex03_04 01_boost/example03/Ex03_04.cpp)
#add_executable(Ex03_05 01_boost/example03/Ex03_05.cpp)
#add_executable(Ex03_06 01_boost/example03/Ex03_06.cpp)
#add_executable(Ex03_07 01_boost/example03/Ex03_07.cpp)
#add_executable(Ex03_08 01_boost/example03/Ex03_08.cpp)
#add_executable(Ex03_09 01_boost/example03/Ex03_09.cpp)
#add_executable(Ex03_10 01_boost/example03/Ex03_10.cpp)
#add_executable(Ex03_11 01_boost/example03/Ex03_11.cpp)
#add_executable(Ex03_12 01_boost/example03/Ex03_12.cpp)
#add_executable(Ex03_13 01_boost/example03/Ex03_13.cpp)
#add_executable(Ex03_14 01_boost/example03/Ex03_14.cpp)
#add_executable(Ex03_15 01_boost/example03/Ex03_15.cpp)
#add_executable(Ex03_16 01_boost/example03/Ex03_16.cpp)
#add_executable(Ex03_17 01_boost/example03/Ex03_17.cpp)
##add_executable(Ex03_18 01_boost/example03/Ex03_18.cpp)
#add_executable(Ex03_19 01_boost/example03/Ex03_19.cpp)
#add_executable(Ex03_20 01_boost/example03/Ex03_20.cpp)
#add_executable(Ex03_21 01_boost/example03/Ex03_21.cpp)
#add_executable(Ex03_22 01_boost/example03/Ex03_22.cpp)
#add_executable(Ex03_23 01_boost/example03/Ex03_23.cpp)
##add_executable(Ex03_24 01_boost/example03/Ex03_24.cpp)
#add_executable(Ex03_25 01_boost/example03/Ex03_25.cpp)
#add_executable(Ex03_26 01_boost/example03/Ex03_26.cpp)
#add_executable(Ex03_27 01_boost/example03/Ex03_27.cpp)
#add_executable(Ex03_28 01_boost/example03/Ex03_28.cpp)
#add_executable(Ex03_29 01_boost/example03/Ex03_29.cpp)
#add_executable(Ex03_30 01_boost/example03/Ex03_30.cpp)
#add_executable(Ex03_31 01_boost/example03/Ex03_31.cpp)
#add_executable(Ex03_32 01_boost/example03/Ex03_32.cpp)
##########example04##########
#add_executable(Ex04_01 01_boost/example04/Ex04_01.cpp)
#add_executable(Ex04_02 01_boost/example04/Ex04_02.cpp)
#add_executable(Ex04_03 01_boost/example04/Ex04_03.cpp)
#add_executable(Ex04_04 01_boost/example04/Ex04_04.cpp)
#add_executable(Ex04_05 01_boost/example04/Ex04_05.cpp)
#add_executable(Ex04_06 01_boost/example04/Ex04_06.cpp)
#add_executable(Ex04_07 01_boost/example04/Ex04_07.cpp)
#add_executable(Ex04_08 01_boost/example04/Ex04_08.cpp)
#add_executable(Ex04_09 01_boost/example04/Ex04_09.cpp)
#add_executable(Ex04_10 01_boost/example04/Ex04_10.cpp)
#add_executable(Ex04_11 01_boost/example04/Ex04_11.cpp)
#add_executable(Ex04_12 01_boost/example04/Ex04_12.cpp)
#add_executable(Ex04_13 01_boost/example04/Ex04_13.cpp)
#add_executable(Ex04_14 01_boost/example04/Ex04_14.cpp)
#add_executable(Ex04_15 01_boost/example04/Ex04_15.cpp)
#add_executable(Ex04_16 01_boost/example04/Ex04_16.cpp)
#add_executable(Ex04_17 01_boost/example04/Ex04_17.cpp)
#add_executable(Ex04_18 01_boost/example04/Ex04_18.cpp)
#add_executable(Ex04_19 01_boost/example04/Ex04_19.cpp)
#add_executable(Ex04_20 01_boost/example04/Ex04_20.cpp)
#add_executable(Ex04_21 01_boost/example04/Ex04_21.cpp)
#add_executable(Ex04_22 01_boost/example04/Ex04_22.cpp)
#add_executable(Ex04_23 01_boost/example04/Ex04_23.cpp)
#add_executable(Ex04_24 01_boost/example04/Ex04_24.cpp)
#add_executable(Ex04_25 01_boost/example04/Ex04_25.cpp)
#add_executable(Ex04_26 01_boost/example04/Ex04_26.cpp)
##########example05##########
#add_executable(Ex05_01 01_boost/example05/Ex05_01.cpp)
##add_executable(Ex05_02 01_boost/example05/Ex05_02.cpp)
##add_executable(Ex05_03 01_boost/example05/Ex05_03.cpp)
#add_executable(Ex05_04 01_boost/example05/Ex05_04.cpp)
#add_executable(Ex05_05 01_boost/example05/Ex05_05.cpp)
#add_executable(Ex05_06 01_boost/example05/Ex05_06.cpp)
#add_executable(Ex05_07 01_boost/example05/Ex05_07.cpp)
#add_executable(Ex05_08 01_boost/example05/Ex05_08.cpp)
#add_executable(Ex05_09 01_boost/example05/Ex05_09.cpp)
##########example06##########
##add_executable(Ex06_01 01_boost/example06/Ex06_01.cpp)
##add_executable(Ex06_02 01_boost/example06/Ex06_02.cpp)
#add_executable(Ex06_03 01_boost/example06/Ex06_03.cpp)
#add_executable(Ex06_04 01_boost/example06/Ex06_04.cpp)
#add_executable(Ex06_05 01_boost/example06/Ex06_05.cpp)
#add_executable(Ex06_06 01_boost/example06/Ex06_06.cpp)
##add_executable(Ex06_07 01_boost/example06/Ex06_07.cpp)
##add_executable(Ex06_08 01_boost/example06/Ex06_08.cpp)
##add_executable(Ex06_09 01_boost/example06/Ex06_09.cpp)
##add_executable(Ex06_10 01_boost/example06/Ex06_10.cpp)
##add_executable(Ex06_11 01_boost/example06/Ex06_11.cpp)
##add_executable(Ex06_12 01_boost/example06/Ex06_12.cpp)
#add_executable(Ex06_13 01_boost/example06/Ex06_13.cpp)
#add_executable(Ex06_14 01_boost/example06/Ex06_14.cpp)
#add_executable(Ex06_15 01_boost/example06/Ex06_15.cpp)
##add_executable(Ex06_16 01_boost/example06/Ex06_16.cpp)
##add_executable(Ex06_17 01_boost/example06/Ex06_17.cpp)
##add_executable(Ex06_18 01_boost/example06/Ex06_18.cpp)
##add_executable(Ex06_19 01_boost/example06/Ex06_19.cpp)
#add_executable(Ex06_20 01_boost/example06/Ex06_20.cpp)
##add_executable(Ex06_21 01_boost/example06/Ex06_21.cpp)
#add_executable(Ex06_22 01_boost/example06/Ex06_22.cpp)
#add_executable(Ex06_23 01_boost/example06/Ex06_23.cpp)
#add_executable(Ex06_24 01_boost/example06/Ex06_24.cpp)
#add_executable(Ex06_25 01_boost/example06/Ex06_25.cpp)
#add_executable(Ex06_26 01_boost/example06/Ex06_26.cpp)
#add_executable(Ex06_27 01_boost/example06/Ex06_27.cpp)
#add_executable(Ex06_28 01_boost/example06/Ex06_28.cpp)
#add_executable(Ex06_29 01_boost/example06/Ex06_29.cpp)
#add_executable(Ex06_30 01_boost/example06/Ex06_30.cpp)
#add_executable(Ex06_31 01_boost/example06/Ex06_31.cpp)
##########example07##########
#add_executable(Ex07_01 01_boost/example07/Ex07_01.cpp)
#add_executable(Ex07_02 01_boost/example07/Ex07_02.cpp)
#add_executable(Ex07_03 01_boost/example07/Ex07_03.cpp)
#add_executable(Ex07_04 01_boost/example07/Ex07_04.cpp)
#add_executable(Ex07_05 01_boost/example07/Ex07_05.cpp)
#add_executable(Ex07_06 01_boost/example07/Ex07_06.cpp)
#add_executable(Ex07_07 01_boost/example07/Ex07_07.cpp)
#add_executable(Ex07_08 01_boost/example07/Ex07_08.cpp)
#add_executable(Ex07_09 01_boost/example07/Ex07_09.cpp)
#add_executable(Ex07_10 01_boost/example07/Ex07_10.cpp)
##########example08##########
#add_executable(Ex08_01 01_boost/example08/Ex08_01.cpp)
#add_executable(Ex08_02 01_boost/example08/Ex08_02.cpp)
#add_executable(Ex08_03 01_boost/example08/Ex08_03.cpp)
#add_executable(Ex08_04 01_boost/example08/Ex08_04.cpp)
#add_executable(Ex08_05 01_boost/example08/Ex08_05.cpp)
#add_executable(Ex08_06 01_boost/example08/Ex08_06.cpp)
#add_executable(Ex08_07 01_boost/example08/Ex08_07.cpp)
#add_executable(Ex08_08 01_boost/example08/Ex08_08.cpp)
#add_executable(Ex08_09 01_boost/example08/Ex08_09.cpp)
#add_executable(Ex08_10 01_boost/example08/Ex08_10.cpp)
#add_executable(Ex08_11 01_boost/example08/Ex08_11.cpp)
#add_executable(Ex08_12 01_boost/example08/Ex08_12.cpp)
#add_executable(Ex08_13 01_boost/example08/Ex08_13.cpp)
#add_executable(Ex08_14 01_boost/example08/Ex08_14.cpp)
#add_executable(Ex08_15 01_boost/example08/Ex08_15.cpp)
#add_executable(Ex08_16 01_boost/example08/Ex08_16.cpp)
#add_executable(Ex08_17 01_boost/example08/Ex08_17.cpp)
#add_executable(Ex08_18 01_boost/example08/Ex08_18.cpp)
##########example09##########
#add_executable(Ex09_01 01_boost/example09/Ex09_01.cpp)
#add_executable(Ex09_02 01_boost/example09/Ex09_02.cpp)
#add_executable(Ex09_03 01_boost/example09/Ex09_03.cpp)
#add_executable(Ex09_04 01_boost/example09/Ex09_04.cpp)
#add_executable(Ex09_05 01_boost/example09/Ex09_05.cpp)
#add_executable(Ex09_06 01_boost/example09/Ex09_06.cpp)
#add_executable(Ex09_07 01_boost/example09/Ex09_07.cpp)
#add_executable(Ex09_08 01_boost/example09/Ex09_08.cpp)
#add_executable(Ex09_09 01_boost/example09/Ex09_09.cpp)
#add_executable(Ex09_10 01_boost/example09/Ex09_10.cpp)
#add_executable(Ex09_11 01_boost/example09/Ex09_11.cpp)
#add_executable(Ex09_12 01_boost/example09/Ex09_12.cpp)
#add_executable(Ex09_13 01_boost/example09/Ex09_13.cpp)
#add_executable(Ex09_14 01_boost/example09/Ex09_14.cpp)
#add_executable(Ex09_15 01_boost/example09/Ex09_15.cpp)
##########example10##########
add_executable(Ex10_01 01_boost/example10/Ex10_01.cpp)
add_executable(Ex10_02 01_boost/example10/Ex10_02.cpp)
add_executable(Ex10_03 01_boost/example10/Ex10_03.cpp)
add_executable(Ex10_04 01_boost/example10/Ex10_04.cpp)
add_executable(Ex10_05 01_boost/example10/Ex10_05.cpp)
add_executable(Ex10_06 01_boost/example10/Ex10_06.cpp)
add_executable(Ex10_07 01_boost/example10/Ex10_07.cpp)
add_executable(Ex10_08 01_boost/example10/Ex10_08.cpp)
add_executable(Ex10_09 01_boost/example10/Ex10_09.cpp)
add_executable(Ex10_10 01_boost/example10/Ex10_10.cpp)
add_executable(Ex10_11 01_boost/example10/Ex10_11.cpp)
add_executable(Ex10_12 01_boost/example10/Ex10_12.cpp)
add_executable(Ex10_13 01_boost/example10/Ex10_13.cpp)
add_executable(Ex10_14 01_boost/example10/Ex10_14.cpp)
add_executable(Ex10_15 01_boost/example10/Ex10_15.cpp)
add_executable(Ex10_16 01_boost/example10/Ex10_16.cpp)
add_executable(Ex10_17 01_boost/example10/Ex10_17.cpp)
add_executable(Ex10_18 01_boost/example10/Ex10_18.cpp)
add_executable(Ex10_19 01_boost/example10/Ex10_19.cpp)
add_executable(Ex10_20 01_boost/example10/Ex10_20.cpp)
add_executable(Ex10_21 01_boost/example10/Ex10_21.cpp)
add_executable(Ex10_22 01_boost/example10/Ex10_22.cpp)
#add_executable(Ex10_23 01_boost/example10/Ex10_23.cpp)
add_executable(Ex10_24 01_boost/example10/Ex10_24.cpp)
add_executable(Ex10_25 01_boost/example10/Ex10_25.cpp)