-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
CMakeLists.txt
executable file
·70 lines (61 loc) · 1010 Bytes
/
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
#
# Add sources
#
add_library(Util STATIC "")
set(CHECKS_HEADERS
Checks/PacketChecks.h
Checks/PlayerChecks.h
Checks/PositionChecks.h
Checks/TimeChecks.h
)
set(CHECKS_SOURCES
Checks/PacketChecks.c
Checks/PlayerChecks.c
Checks/PositionChecks.c
Checks/TimeChecks.c
)
set(MT_HEADERS
MersenneTwister/MT.h
)
set(MT_SOURCES
MersenneTwister/MT.c
)
set(UTIL_HEADERS
${CHECKS_HEADERS}
${MT_HEADERS}
Queue.h
Compress.h
DataStream.h
Types.h
Physics.h
Line.h
Log.h
Nanos.h
Notice.h
Weapon.h
)
set(UTIL_SOURCES
${CHECKS_SOURCES}
${MT_SOURCES}
Compress.c
DataStream.c
Physics.c
Line.c
Log.c
Nanos.c
Notice.c
Weapon.c
)
target_sources(Util
PRIVATE
${UTIL_SOURCES}
PUBLIC
${UTIL_HEADERS}
)
target_link_libraries(Util
PUBLIC
SpadesXCommon
PRIVATE
z # zlib
mapvxl
)