-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
95 lines (95 loc) · 4.72 KB
/
CMakeLists.txt
File metadata and controls
95 lines (95 loc) · 4.72 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
# 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)
####################(3)network####################
##########example00##########
#add_executable(Ex00_01 03_network/example00/Ex00_01.cpp)
#add_executable(Ex00_02 03_network/example00/Ex00_02.cpp)
#add_executable(Ex00_03 03_network/example00/Ex00_03.cpp)
#add_executable(Ex00_04 03_network/example00/Ex00_04.cpp)
#add_executable(Ex00_05 03_network/example00/Ex00_05.cpp)
#add_executable(Ex00_06 03_network/example00/Ex00_06.cpp)
#add_executable(Ex00_07 03_network/example00/Ex00_07.cpp)
#add_executable(Ex00_08 03_network/example00/Ex00_08.cpp)
#add_executable(Ex00_09 03_network/example00/Ex00_09.cpp)
#add_executable(Ex00_10 03_network/example00/Ex00_10.cpp)
#add_executable(Ex00_11 03_network/example00/Ex00_11.cpp)
#add_executable(Ex00_12 03_network/example00/Ex00_12.cpp)
#add_executable(Ex00_13 03_network/example00/Ex00_13.cpp)
#add_executable(Ex00_14 03_network/example00/Ex00_14.cpp)
#add_executable(Ex00_15 03_network/example00/Ex00_15.cpp)
#add_executable(Ex00_16 03_network/example00/Ex00_16.cpp)
#add_executable(Ex00_17 03_network/example00/Ex00_17.cpp)
#add_executable(Ex00_18 03_network/example00/Ex00_18.cpp)
#add_executable(Ex00_19 03_network/example00/Ex00_19.cpp)
#add_executable(Ex00_20 03_network/example00/Ex00_20.cpp)
#add_executable(Ex00_21 03_network/example00/Ex00_21.cpp)
#add_executable(Ex00_22 03_network/example00/Ex00_22.cpp)
#add_executable(Ex00_23 03_network/example00/Ex00_23.cpp)
#add_executable(Ex00_24 03_network/example00/Ex00_24.cpp)
#add_executable(Ex00_25 03_network/example00/Ex00_25.cpp)
#add_executable(Ex00_26 03_network/example00/Ex00_26.cpp)
#add_executable(Ex00_27 03_network/example00/Ex00_27.cpp)
#add_executable(Ex00_28 03_network/example00/Ex00_28.cpp)
#add_executable(Ex00_29 03_network/example00/Ex00_29.cpp)
#add_executable(Ex00_30 03_network/example00/Ex00_30.cpp)
##########example01##########
#add_executable(Ex01_00 03_network/example01/Ex01_00.cpp)
#add_executable(Ex01_01 03_network/example01/Ex01_01.cpp)
#add_executable(Ex01_02 03_network/example01/Ex01_02.cpp)
#add_executable(Ex01_03 03_network/example01/Ex01_03.cpp)
#add_executable(Ex01_04 03_network/example01/Ex01_04.cpp)
#add_executable(Ex01_05 03_network/example01/Ex01_05.cpp)
#add_executable(Ex01_06 03_network/example01/Ex01_06.cpp)
#add_executable(Ex01_07 03_network/example01/Ex01_07.cpp)
#add_executable(Ex01_08 03_network/example01/Ex01_08.cpp)
#add_executable(Ex01_09 03_network/example01/Ex01_09.cpp)
#add_executable(Ex01_10 03_network/example01/Ex01_10.cpp)
#add_executable(Ex01_11 03_network/example01/Ex01_11.cpp)
##########example02##########
#add_executable(Ex02_00 03_network/example02/Ex02_00.cpp)
#add_executable(Ex02_01 03_network/example02/Ex02_01.cpp)
#add_executable(Ex02_02 03_network/example02/Ex02_02.cpp)
#add_executable(Ex02_03 03_network/example02/Ex02_03.cpp)
#add_executable(Ex02_04 03_network/example02/Ex02_04.cpp)
#add_executable(Ex02_05 03_network/example02/Ex02_05.cpp)
#add_executable(Ex02_06 03_network/example02/Ex02_06.cpp)
#add_executable(Ex02_07 03_network/example02/Ex02_07.cpp)
#add_executable(Ex02_08 03_network/example02/Ex02_08.cpp)
#add_executable(Ex02_09 03_network/example02/Ex02_09.cpp)
#add_executable(Ex02_10 03_network/example02/Ex02_10.cpp)
#add_executable(Ex02_11 03_network/example02/Ex02_11.cpp)
#add_executable(Ex02_12 03_network/example02/Ex02_12.cpp)
##########example03##########
#add_executable(Ex03_01 03_network/example03/Ex03_01.cpp)
#add_executable(Ex03_02 03_network/example03/Ex03_02.cpp)
#add_executable(Ex03_03 03_network/example03/Ex03_03.cpp)
#add_executable(Ex03_04 03_network/example03/Ex03_04.cpp)
#add_executable(Ex03_05 03_network/example03/Ex03_05.cpp)
#add_executable(Ex03_06 03_network/example03/Ex03_06.cpp)
#add_executable(Ex03_07 03_network/example03/Ex03_07.cpp)
##########example04##########
#add_executable(Ex04_00 03_network/example04/Ex04_00.cpp)
#add_executable(Ex04_01 03_network/example04/Ex04_01.cpp)
#add_executable(Ex04_02 03_network/example04/Ex04_02.cpp)
#add_executable(Ex04_03 03_network/example04/Ex04_03.cpp)
##########example05##########