forked from youngmonkeys/ezyfox-server-cpp-client
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
172 lines (156 loc) · 4.81 KB
/
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
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
#/****************************************************************************
# Copyright (c) 2021 youngmonkeys.org
# ****************************************************************************/
cmake_minimum_required(VERSION 3.6)
project(ezyfox-client)
set(EZY_CLIENT_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})
# command: find src -type f -name '*h' -print
set(EZY_CLIENT_HEADER
src/handler/EzyPluginDataHandlers.h
src/handler/EzyEventHandler.h
src/handler/EzyPluginDataHandler.h
src/handler/EzyDataHandlers.h
src/handler/EzyEventHandlers.h
src/handler/EzyAppDataHandler.h
src/handler/EzyDataHandler.h
src/handler/EzyAppDataHandlers.h
src/EzyClient.h
src/EzyClients.h
src/EzyUTClient.h
src/logger/EzyLogger.h
src/util/EzyStack.h
src/util/EzyMaps.h
src/config/EzyClientConfig.h
src/entity/EzyUser.h
src/entity/EzyPlugin.h
src/entity/EzyByteArray.h
src/entity/EzyPrimitive.h
src/entity/EzyArray.h
src/entity/EzyValue.h
src/entity/EzyZone.h
src/entity/EzyApp.h
src/entity/EzyObject.h
src/entity/EzyNull.h
src/entity/EzyString.h
src/codec/EzyDataEncoder.h
src/codec/EzyMessage.h
src/codec/EzyEncryption.h
src/codec/EzyDataDecoder.h
src/setup/EzySetup.h
src/EzyHeaders.h
src/manager/EzyHandlerManager.h
src/manager/EzyAppManager.h
src/manager/EzyPingManager.h
src/manager/EzyPluginManager.h
src/EzyMacro.h
src/constant/EzyStatusCode.h
src/constant/EzyConnectionStatus.h
src/constant/EzyTransportType.h
src/constant/EzyConnectionFailedReason.h
src/constant/EzyDisconnectReason.h
src/constant/EzyCommand.h
src/concurrent/EzyThread.h
src/concurrent/EzyScheduleAtFixedRate.h
src/gc/EzyReleasePool.h
src/gc/EzyAutoReleasePool.h
src/request/EzyRequest.h
src/request/EzyRequestSerializer.h
src/event/EzyEventType.h
src/event/EzyEvent.h
src/base/EzyRef.h
src/socket/EzySocketDelegate.h
src/socket/EzySocketAdapter.h
src/socket/EzySocketClient.h
src/socket/EzySocketReader.h
src/socket/EzySocketDefine.h
src/socket/EzyTcpSocketClient.h
src/socket/EzySocketPool.h
src/socket/EzyUdpSocketClient.h
src/socket/EzyUTSocketClient.h
src/socket/EzySender.h
src/socket/EzySocketCore.h
src/socket/EzySocketWriter.h
src/socket/EzyPingSchedule.h
src/socket/EzyMainEventsLoop.h
)
# command: find src -type f -name '*cpp' -print
set(EZY_CLIENT_SRC
src/handler/EzyEventHandlers.cpp
src/handler/EzyDataHandlers.cpp
src/handler/EzyEventHandler.cpp
src/handler/EzyAppDataHandlers.cpp
src/handler/EzyPluginDataHandlers.cpp
src/handler/EzyPluginDataHandler.cpp
src/handler/EzyAppDataHandler.cpp
src/handler/EzyDataHandler.cpp
src/EzyUTClient.cpp
src/logger/EzyLogger.cpp
src/config/EzyClientConfig.cpp
src/entity/EzyApp.cpp
src/entity/EzyString.cpp
src/entity/EzyZone.cpp
src/entity/EzyPrimitive.cpp
src/entity/EzyObject.cpp
src/entity/EzyNull.cpp
src/entity/EzyByteArray.cpp
src/entity/EzyArray.cpp
src/entity/EzyValue.cpp
src/entity/EzyUser.cpp
src/entity/EzyPlugin.cpp
src/codec/EzyMessage.cpp
src/codec/EzyDataDecoder.cpp
src/codec/EzyEncryption.cpp
src/codec/EzyDataEncoder.cpp
src/EzyClient.cpp
src/setup/EzySetup.cpp
src/EzyClients.cpp
src/manager/EzyPluginManager.cpp
src/manager/EzyAppManager.cpp
src/manager/EzyHandlerManager.cpp
src/manager/EzyPingManager.cpp
src/constant/EzyConnectionStatus.cpp
src/constant/EzyCommand.cpp
src/constant/EzyDisconnectReason.cpp
src/constant/EzyConnectionFailedReason.cpp
src/concurrent/EzyThread.cpp
src/concurrent/EzyScheduleAtFixedRate.cpp
src/gc/EzyReleasePool.cpp
src/gc/EzyAutoReleasePool.cpp
src/request/EzyRequest.cpp
src/request/EzyRequestSerializer.cpp
src/event/EzyEvent.cpp
src/event/EzyEventType.cpp
src/base/EzyRef.cpp
src/socket/EzyTcpSocketClient.cpp
src/socket/EzySocketClient.cpp
src/socket/EzySocketAdapter.cpp
src/socket/EzySocketCore.cpp
src/socket/EzyMainEventsLoop.cpp
src/socket/EzyPingSchedule.cpp
src/socket/EzySocketPool.cpp
src/socket/EzySocketReader.cpp
src/socket/EzyUTSocketClient.cpp
src/socket/EzyUdpSocketClient.cpp
src/socket/EzySocketWriter.cpp
)
list(APPEND EZY_CLIENT_SRC ${EZY_CLIENT_HEADER})
add_library(ezyfox-client ${EZY_CLIENT_SRC})
# command: find src -type d -print
target_include_directories( ezyfox-client
PUBLIC src
PUBLIC src/handler
PUBLIC src/logger
PUBLIC src/util
PUBLIC src/config
PUBLIC src/entity
PUBLIC src/codec
PUBLIC src/setup
PUBLIC src/manager
PUBLIC src/constant
PUBLIC src/concurrent
PUBLIC src/gc
PUBLIC src/request
PUBLIC src/event
PUBLIC src/base
PUBLIC src/socket
)