forked from otland/forgottenserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
184 lines (180 loc) · 6.6 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
173
174
175
176
177
178
179
180
181
182
183
184
set(tfs_SRC
${CMAKE_CURRENT_LIST_DIR}/otpch.cpp
${CMAKE_CURRENT_LIST_DIR}/actions.cpp
${CMAKE_CURRENT_LIST_DIR}/ban.cpp
${CMAKE_CURRENT_LIST_DIR}/baseevents.cpp
${CMAKE_CURRENT_LIST_DIR}/bed.cpp
${CMAKE_CURRENT_LIST_DIR}/chat.cpp
${CMAKE_CURRENT_LIST_DIR}/combat.cpp
${CMAKE_CURRENT_LIST_DIR}/condition.cpp
${CMAKE_CURRENT_LIST_DIR}/configmanager.cpp
${CMAKE_CURRENT_LIST_DIR}/connection.cpp
${CMAKE_CURRENT_LIST_DIR}/container.cpp
${CMAKE_CURRENT_LIST_DIR}/creature.cpp
${CMAKE_CURRENT_LIST_DIR}/creatureevent.cpp
${CMAKE_CURRENT_LIST_DIR}/cylinder.cpp
${CMAKE_CURRENT_LIST_DIR}/database.cpp
${CMAKE_CURRENT_LIST_DIR}/databasemanager.cpp
${CMAKE_CURRENT_LIST_DIR}/databasetasks.cpp
${CMAKE_CURRENT_LIST_DIR}/depotchest.cpp
${CMAKE_CURRENT_LIST_DIR}/depotlocker.cpp
${CMAKE_CURRENT_LIST_DIR}/events.cpp
${CMAKE_CURRENT_LIST_DIR}/fileloader.cpp
${CMAKE_CURRENT_LIST_DIR}/game.cpp
${CMAKE_CURRENT_LIST_DIR}/globalevent.cpp
${CMAKE_CURRENT_LIST_DIR}/groups.cpp
${CMAKE_CURRENT_LIST_DIR}/guild.cpp
${CMAKE_CURRENT_LIST_DIR}/house.cpp
${CMAKE_CURRENT_LIST_DIR}/housetile.cpp
${CMAKE_CURRENT_LIST_DIR}/inbox.cpp
${CMAKE_CURRENT_LIST_DIR}/iologindata.cpp
${CMAKE_CURRENT_LIST_DIR}/iomap.cpp
${CMAKE_CURRENT_LIST_DIR}/iomapserialize.cpp
${CMAKE_CURRENT_LIST_DIR}/iomarket.cpp
${CMAKE_CURRENT_LIST_DIR}/item.cpp
${CMAKE_CURRENT_LIST_DIR}/items.cpp
${CMAKE_CURRENT_LIST_DIR}/luascript.cpp
${CMAKE_CURRENT_LIST_DIR}/mailbox.cpp
${CMAKE_CURRENT_LIST_DIR}/map.cpp
${CMAKE_CURRENT_LIST_DIR}/matrixarea.cpp
${CMAKE_CURRENT_LIST_DIR}/monster.cpp
${CMAKE_CURRENT_LIST_DIR}/monsters.cpp
${CMAKE_CURRENT_LIST_DIR}/mounts.cpp
${CMAKE_CURRENT_LIST_DIR}/movement.cpp
${CMAKE_CURRENT_LIST_DIR}/networkmessage.cpp
${CMAKE_CURRENT_LIST_DIR}/npc.cpp
${CMAKE_CURRENT_LIST_DIR}/otserv.cpp
${CMAKE_CURRENT_LIST_DIR}/outfit.cpp
${CMAKE_CURRENT_LIST_DIR}/outputmessage.cpp
${CMAKE_CURRENT_LIST_DIR}/party.cpp
${CMAKE_CURRENT_LIST_DIR}/player.cpp
${CMAKE_CURRENT_LIST_DIR}/podium.cpp
${CMAKE_CURRENT_LIST_DIR}/position.cpp
${CMAKE_CURRENT_LIST_DIR}/protocol.cpp
${CMAKE_CURRENT_LIST_DIR}/protocolgame.cpp
${CMAKE_CURRENT_LIST_DIR}/protocollogin.cpp
${CMAKE_CURRENT_LIST_DIR}/protocolold.cpp
${CMAKE_CURRENT_LIST_DIR}/protocolstatus.cpp
${CMAKE_CURRENT_LIST_DIR}/rsa.cpp
${CMAKE_CURRENT_LIST_DIR}/scheduler.cpp
${CMAKE_CURRENT_LIST_DIR}/script.cpp
${CMAKE_CURRENT_LIST_DIR}/scriptmanager.cpp
${CMAKE_CURRENT_LIST_DIR}/server.cpp
${CMAKE_CURRENT_LIST_DIR}/signals.cpp
${CMAKE_CURRENT_LIST_DIR}/spawn.cpp
${CMAKE_CURRENT_LIST_DIR}/spells.cpp
${CMAKE_CURRENT_LIST_DIR}/storeinbox.cpp
${CMAKE_CURRENT_LIST_DIR}/talkaction.cpp
${CMAKE_CURRENT_LIST_DIR}/tasks.cpp
${CMAKE_CURRENT_LIST_DIR}/teleport.cpp
${CMAKE_CURRENT_LIST_DIR}/thing.cpp
${CMAKE_CURRENT_LIST_DIR}/tile.cpp
${CMAKE_CURRENT_LIST_DIR}/tools.cpp
${CMAKE_CURRENT_LIST_DIR}/trashholder.cpp
${CMAKE_CURRENT_LIST_DIR}/vocation.cpp
${CMAKE_CURRENT_LIST_DIR}/weapons.cpp
${CMAKE_CURRENT_LIST_DIR}/wildcardtree.cpp
${CMAKE_CURRENT_LIST_DIR}/xtea.cpp
)
set(tfs_HDR
${CMAKE_CURRENT_LIST_DIR}/otpch.h
${CMAKE_CURRENT_LIST_DIR}/account.h
${CMAKE_CURRENT_LIST_DIR}/actions.h
${CMAKE_CURRENT_LIST_DIR}/ban.h
${CMAKE_CURRENT_LIST_DIR}/baseevents.h
${CMAKE_CURRENT_LIST_DIR}/bed.h
${CMAKE_CURRENT_LIST_DIR}/chat.h
${CMAKE_CURRENT_LIST_DIR}/combat.h
${CMAKE_CURRENT_LIST_DIR}/condition.h
${CMAKE_CURRENT_LIST_DIR}/configmanager.h
${CMAKE_CURRENT_LIST_DIR}/connection.h
${CMAKE_CURRENT_LIST_DIR}/const.h
${CMAKE_CURRENT_LIST_DIR}/container.h
${CMAKE_CURRENT_LIST_DIR}/creatureevent.h
${CMAKE_CURRENT_LIST_DIR}/creature.h
${CMAKE_CURRENT_LIST_DIR}/cylinder.h
${CMAKE_CURRENT_LIST_DIR}/database.h
${CMAKE_CURRENT_LIST_DIR}/databasemanager.h
${CMAKE_CURRENT_LIST_DIR}/databasetasks.h
${CMAKE_CURRENT_LIST_DIR}/definitions.h
${CMAKE_CURRENT_LIST_DIR}/depotchest.h
${CMAKE_CURRENT_LIST_DIR}/depotlocker.h
${CMAKE_CURRENT_LIST_DIR}/enums.h
${CMAKE_CURRENT_LIST_DIR}/events.h
${CMAKE_CURRENT_LIST_DIR}/fileloader.h
${CMAKE_CURRENT_LIST_DIR}/game.h
${CMAKE_CURRENT_LIST_DIR}/globalevent.h
${CMAKE_CURRENT_LIST_DIR}/groups.h
${CMAKE_CURRENT_LIST_DIR}/guild.h
${CMAKE_CURRENT_LIST_DIR}/house.h
${CMAKE_CURRENT_LIST_DIR}/housetile.h
${CMAKE_CURRENT_LIST_DIR}/inbox.h
${CMAKE_CURRENT_LIST_DIR}/iologindata.h
${CMAKE_CURRENT_LIST_DIR}/iomap.h
${CMAKE_CURRENT_LIST_DIR}/iomapserialize.h
${CMAKE_CURRENT_LIST_DIR}/iomarket.h
${CMAKE_CURRENT_LIST_DIR}/item.h
${CMAKE_CURRENT_LIST_DIR}/itemloader.h
${CMAKE_CURRENT_LIST_DIR}/items.h
${CMAKE_CURRENT_LIST_DIR}/lockfree.h
${CMAKE_CURRENT_LIST_DIR}/luascript.h
${CMAKE_CURRENT_LIST_DIR}/luavariant.h
${CMAKE_CURRENT_LIST_DIR}/mailbox.h
${CMAKE_CURRENT_LIST_DIR}/map.h
${CMAKE_CURRENT_LIST_DIR}/matrixarea.h
${CMAKE_CURRENT_LIST_DIR}/monster.h
${CMAKE_CURRENT_LIST_DIR}/monsters.h
${CMAKE_CURRENT_LIST_DIR}/mounts.h
${CMAKE_CURRENT_LIST_DIR}/movement.h
${CMAKE_CURRENT_LIST_DIR}/networkmessage.h
${CMAKE_CURRENT_LIST_DIR}/npc.h
${CMAKE_CURRENT_LIST_DIR}/otserv.h
${CMAKE_CURRENT_LIST_DIR}/outfit.h
${CMAKE_CURRENT_LIST_DIR}/outputmessage.h
${CMAKE_CURRENT_LIST_DIR}/party.h
${CMAKE_CURRENT_LIST_DIR}/player.h
${CMAKE_CURRENT_LIST_DIR}/podium.h
${CMAKE_CURRENT_LIST_DIR}/position.h
${CMAKE_CURRENT_LIST_DIR}/protocolgame.h
${CMAKE_CURRENT_LIST_DIR}/protocol.h
${CMAKE_CURRENT_LIST_DIR}/protocollogin.h
${CMAKE_CURRENT_LIST_DIR}/protocolold.h
${CMAKE_CURRENT_LIST_DIR}/protocolstatus.h
${CMAKE_CURRENT_LIST_DIR}/pugicast.h
${CMAKE_CURRENT_LIST_DIR}/rsa.h
${CMAKE_CURRENT_LIST_DIR}/scheduler.h
${CMAKE_CURRENT_LIST_DIR}/script.h
${CMAKE_CURRENT_LIST_DIR}/scriptmanager.h
${CMAKE_CURRENT_LIST_DIR}/server.h
${CMAKE_CURRENT_LIST_DIR}/signals.h
${CMAKE_CURRENT_LIST_DIR}/spawn.h
${CMAKE_CURRENT_LIST_DIR}/spectators.h
${CMAKE_CURRENT_LIST_DIR}/spells.h
${CMAKE_CURRENT_LIST_DIR}/storeinbox.h
${CMAKE_CURRENT_LIST_DIR}/talkaction.h
${CMAKE_CURRENT_LIST_DIR}/tasks.h
${CMAKE_CURRENT_LIST_DIR}/teleport.h
${CMAKE_CURRENT_LIST_DIR}/thing.h
${CMAKE_CURRENT_LIST_DIR}/thread_holder_base.h
${CMAKE_CURRENT_LIST_DIR}/tile.h
${CMAKE_CURRENT_LIST_DIR}/tools.h
${CMAKE_CURRENT_LIST_DIR}/town.h
${CMAKE_CURRENT_LIST_DIR}/trashholder.h
${CMAKE_CURRENT_LIST_DIR}/vocation.h
${CMAKE_CURRENT_LIST_DIR}/weapons.h
${CMAKE_CURRENT_LIST_DIR}/wildcardtree.h
${CMAKE_CURRENT_LIST_DIR}/xtea.h
)
set(tfs_MAIN ${CMAKE_CURRENT_LIST_DIR}/main.cpp PARENT_SCOPE)
add_library(tfslib ${tfs_SRC})
target_link_libraries(tfslib PRIVATE
Boost::iostreams
Boost::system
fmt::fmt
pugixml::pugixml
${CMAKE_THREAD_LIBS_INIT}
${Crypto++_LIBRARIES}
${LUA_LIBRARIES}
${MYSQL_CLIENT_LIBS}
)
add_custom_target(format COMMAND /usr/bin/clang-format -style=file -i ${tfs_HDR} ${tfs_SRC} ${tfs_MAIN})