blob: 98f3a2351633a14bd45bb7a2cd6bdd4d7fc81eb0 (
plain)
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
|
#
## .dMMMb dMMMMMP dMMMMb dMP dMP dMMMMMP dMMMMb
## dMP" VP dMP dMP.dMP dMP dMP dMP dMP.dMP
## VMMMb dMMMP dMMMMK" dMP dMP dMMMP dMMMMK"
## dP .dMP dMP dMP"AMF YMvAP" dMP dMP"AMF
## VMMMP" dMMMMMP dMP dMP VP" dMMMMMP dMP dMP
#
add_definitions(
-DDEDICATED
-DUSE_LOCAL_HEADERS
-DPRODUCT_VERSION="1.2.0 pre-release"
-DUSE_VOIP
-DNDEBUG
)
set(EXTERNAL_DIR ${CMAKE_SOURCE_DIR}/external)
set(PARENT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/..)
if(APPLE)
set(APPLE_SOURCES ${PARENT_DIR}/sys/sys_osx.mm)
endif(APPLE)
add_executable(
tremded
#
server.h
#
sv_ccmds.cpp
sv_client.cpp
sv_game.cpp
sv_init.cpp
sv_main.cpp
sv_net_chan.cpp
sv_snapshot.cpp
sv_world.cpp
#
${PARENT_DIR}/qcommon/cm_load.cpp
${PARENT_DIR}/qcommon/cm_patch.cpp
${PARENT_DIR}/qcommon/cm_polylib.cpp
${PARENT_DIR}/qcommon/cm_test.cpp
${PARENT_DIR}/qcommon/cm_trace.cpp
${PARENT_DIR}/qcommon/cmd.cpp
${PARENT_DIR}/qcommon/common.cpp
${PARENT_DIR}/qcommon/crypto.cpp
${PARENT_DIR}/qcommon/cvar.cpp
${PARENT_DIR}/qcommon/files.cpp
${PARENT_DIR}/qcommon/huffman.cpp
${PARENT_DIR}/qcommon/huffman.h
${PARENT_DIR}/qcommon/ioapi.cpp
${PARENT_DIR}/qcommon/md4.cpp
${PARENT_DIR}/qcommon/msg.h
${PARENT_DIR}/qcommon/msg.cpp
${PARENT_DIR}/qcommon/net.h
${PARENT_DIR}/qcommon/net_chan.cpp
${PARENT_DIR}/qcommon/net_ip.cpp
${PARENT_DIR}/qcommon/parse.cpp
${PARENT_DIR}/qcommon/q3_lauxlib.cpp
${PARENT_DIR}/qcommon/q_math.c
${PARENT_DIR}/qcommon/q_shared.c
${PARENT_DIR}/qcommon/unzip.cpp
${PARENT_DIR}/qcommon/vm.cpp
${PARENT_DIR}/qcommon/vm_interpreted.cpp
${PARENT_DIR}/qcommon/vm_x86.cpp
#
${PARENT_DIR}/null/null_client.cpp
${PARENT_DIR}/null/null_input.cpp
${PARENT_DIR}/null/null_snddma.cpp
#
${PARENT_DIR}/asm/snapvector.c
#
${PARENT_DIR}/sys/con_log.cpp
${PARENT_DIR}/sys/con_tty.cpp
${PARENT_DIR}/sys/sys_main.cpp
${PARENT_DIR}/sys/sys_unix.cpp
${PARENT_DIR}/sys/sys_shared.h
${APPLE_SOURCES}
#
${EXTERNAL_DIR}/zlib/adler32.c
${EXTERNAL_DIR}/zlib/crc32.c
${EXTERNAL_DIR}/zlib/inffast.c
${EXTERNAL_DIR}/zlib/inflate.c
${EXTERNAL_DIR}/zlib/inftrees.c
${EXTERNAL_DIR}/zlib/zutil.c
)
if(APPLE)
# FIXME Prefixed with "lua" to prevent cmake from doing "-l-framework Cocoa"
set(FRAMEWORKS "-framework Cocoa -framework Security -framework OpenAL -framework IOKit")
else(APPLE)
if(UNIX)
set(SYSLIBS dl rt)
endif(UNIX)
endif(APPLE)
target_link_libraries(
tremded
#
lua
script_api
nettle
zlib
${FRAMEWORKS}
${SYSLIBS}
)
include_directories(
${PARENT_DIR}/script
${EXTERNAL_DIR}/lua-5.3.3/include
${EXTERNAL_DIR}/sol
${EXTERNAL_DIR}/script/rapidjson
${EXTERNAL_DIR}/nettle-3.3
${EXTERNAL_DIR}/zlib
)
|