-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
54 lines (43 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
CMAKE_MINIMUM_REQUIRED ( VERSION 3.10 )
PROJECT ( "DServer" )
SET ( CMAKE_BUILD_TYPE Debug )
SET ( CMAKE_VERBOSE_MAKEFILE false )
SET ( GAMESERVER_OUTPUT "GameServer" )
# SET ( CMAKE_C_COMPILER "g++" )
ADD_SUBDIRECTORY ( src/dutil )
ADD_SUBDIRECTORY ( src/dnetwork )
SET ( GAMESERVER_SRC_FILES
src/game_server/main.cpp
src/game_server/game_user.cpp
src/game_server/game_server.cpp
src/game_server/protocol/game_protocol.cpp
src/game_server/protocol/game_protocol_chatting_req.cpp
src/game_server/protocol/BR_GS/bridge_protocol.cpp
)
INCLUDE_DIRECTORIES (
/usr/include/jsoncpp
external_library/cpp_redis/includes
external_library/jemalloc/include
external_library/jsoncpp/include
external_library/ExcelFormat/src
)
LINK_DIRECTORIES (
src/dutil
src/dnetwork
)
LINK_LIBRARIES (
pthread
boost_thread
boost_system
boost_filesystem
gcov
dutil
dnetwork
)
ADD_COMPILE_OPTIONS (
-g
-pthread
-std=c++11
--coverage
)
ADD_EXECUTABLE ( ${GAMESERVER_OUTPUT} ${GAMESERVER_SRC_FILES} )