blob: 544e00c87684e5e32025953f7620ff9d6b0003bc (
plain) (
blame)
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
|
#
# map txt
#
if( HAVE_common_base )
message( STATUS "Creating target map-server" )
set( TXT_MAP_HEADERS
"${MAP_SOURCE_DIR}/atcommand.h"
"${MAP_SOURCE_DIR}/battle.h"
"${MAP_SOURCE_DIR}/battleground.h"
"${MAP_SOURCE_DIR}/buyingstore.h"
"${MAP_SOURCE_DIR}/chat.h"
"${MAP_SOURCE_DIR}/chrif.h"
"${MAP_SOURCE_DIR}/clif.h"
"${MAP_SOURCE_DIR}/date.h"
"${MAP_SOURCE_DIR}/duel.h"
"${MAP_SOURCE_DIR}/guild.h"
"${MAP_SOURCE_DIR}/homunculus.h"
"${MAP_SOURCE_DIR}/instance.h"
"${MAP_SOURCE_DIR}/intif.h"
"${MAP_SOURCE_DIR}/itemdb.h"
"${MAP_SOURCE_DIR}/log.h"
"${MAP_SOURCE_DIR}/mail.h"
"${MAP_SOURCE_DIR}/map.h"
"${MAP_SOURCE_DIR}/mapreg.h"
"${MAP_SOURCE_DIR}/mercenary.h"
"${MAP_SOURCE_DIR}/mob.h"
"${MAP_SOURCE_DIR}/npc.h"
"${MAP_SOURCE_DIR}/party.h"
"${MAP_SOURCE_DIR}/path.h"
"${MAP_SOURCE_DIR}/pc.h"
"${MAP_SOURCE_DIR}/pet.h"
"${MAP_SOURCE_DIR}/quest.h"
"${MAP_SOURCE_DIR}/script.h"
"${MAP_SOURCE_DIR}/searchstore.h"
"${MAP_SOURCE_DIR}/skill.h"
"${MAP_SOURCE_DIR}/status.h"
"${MAP_SOURCE_DIR}/storage.h"
"${MAP_SOURCE_DIR}/trade.h"
"${MAP_SOURCE_DIR}/unit.h"
"${MAP_SOURCE_DIR}/vending.h"
)
set( TXT_MAP_SOURCES
"${MAP_SOURCE_DIR}/atcommand.c"
"${MAP_SOURCE_DIR}/battle.c"
"${MAP_SOURCE_DIR}/battleground.c"
"${MAP_SOURCE_DIR}/buyingstore.c"
"${MAP_SOURCE_DIR}/chat.c"
"${MAP_SOURCE_DIR}/chrif.c"
"${MAP_SOURCE_DIR}/clif.c"
"${MAP_SOURCE_DIR}/date.c"
"${MAP_SOURCE_DIR}/duel.c"
"${MAP_SOURCE_DIR}/guild.c"
"${MAP_SOURCE_DIR}/homunculus.c"
"${MAP_SOURCE_DIR}/instance.c"
"${MAP_SOURCE_DIR}/intif.c"
"${MAP_SOURCE_DIR}/itemdb.c"
"${MAP_SOURCE_DIR}/log.c"
"${MAP_SOURCE_DIR}/mail.c"
"${MAP_SOURCE_DIR}/map.c"
"${MAP_SOURCE_DIR}/mapreg_txt.c"
"${MAP_SOURCE_DIR}/mercenary.c"
"${MAP_SOURCE_DIR}/mob.c"
"${MAP_SOURCE_DIR}/npc.c"
"${MAP_SOURCE_DIR}/npc_chat.c"
"${MAP_SOURCE_DIR}/party.c"
"${MAP_SOURCE_DIR}/path.c"
"${MAP_SOURCE_DIR}/pc.c"
"${MAP_SOURCE_DIR}/pet.c"
"${MAP_SOURCE_DIR}/quest.c"
"${MAP_SOURCE_DIR}/script.c"
"${MAP_SOURCE_DIR}/searchstore.c"
"${MAP_SOURCE_DIR}/skill.c"
"${MAP_SOURCE_DIR}/status.c"
"${MAP_SOURCE_DIR}/storage.c"
"${MAP_SOURCE_DIR}/trade.c"
"${MAP_SOURCE_DIR}/unit.c"
"${MAP_SOURCE_DIR}/vending.c"
)
set( DEPENDENCIES common_base )
set( LIBRARIES ${GLOBAL_LIBRARIES} )
set( INCLUDE_DIRS ${GLOBAL_INCLUDE_DIRS} )
set( DEFINITIONS ${GLOBAL_DEFINITIONS} TXT_ONLY )
if( USE_PCRE )
message( STATUS "Using PCRE" )
list( APPEND LIBRARIES ${PCRE_LIBRARIES} )
list( APPEND INCLUDE_DIRS ${PCRE_INCLUDE_DIRS} )
list( APPEND DEFINITIONS PCRE_SUPPORT )
endif()
set( SOURCE_FILES ${COMMON_BASE_HEADERS} ${TXT_MAP_HEADERS} ${TXT_MAP_SOURCES} )
source_group( common FILES ${COMMON_BASE_HEADERS} )
source_group( map FILES ${TXT_MAP_HEADERS} ${TXT_MAP_SOURCES} )
include_directories( ${INCLUDE_DIRS} )
add_executable( map-server ${SOURCE_FILES} )
add_dependencies( map-server ${DEPENDENCIES} )
target_link_libraries( map-server ${LIBRARIES} ${DEPENDENCIES} )
set_target_properties( map-server PROPERTIES COMPILE_DEFINITIONS "${DEFINITIONS}" )
if( INSTALL_RUN_DATA )
install( TARGETS map-server
DESTINATION ${CMAKE_INSTALL_PREFIX}
COMPONENT "map-server" )
endif()
message( STATUS "Creating target map-server - done" )
set( HAVE_map-server ON CACHE BOOL "map-server target is available" )
mark_as_advanced( HAVE_map-server )
else()
message( STATUS "Skipping target map-server (requires common_base; optional PCRE)" )
unset( HAVE_map-server CACHE )
endif()
|