1
This commit is contained in:
parent
08a2a26b5a
commit
d58896c69a
@ -1,4 +1,4 @@
|
|||||||
project(gameserver)
|
project(robot)
|
||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
set(GAME_ID 2006)
|
set(GAME_ID 2006)
|
||||||
@ -102,7 +102,7 @@ set(EXECUTABLE_OUTPUT_PATH
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
gameserver${GAME_ID} ${SRC_LIST}
|
robot${GAME_ID} ${SRC_LIST}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_target(script_pb_protocol ALL)
|
add_custom_target(script_pb_protocol ALL)
|
||||||
@ -110,10 +110,10 @@ add_custom_command(TARGET script_pb_protocol
|
|||||||
PRE_BUILD
|
PRE_BUILD
|
||||||
COMMAND python ../../third_party/tools/scripts/construct/build_pb.py --cpp_out=. --pb_files=cs_proto,cs_msgid,ss_proto,ss_msgid,navmesh --python_out=../tools/robot/virtualclient
|
COMMAND python ../../third_party/tools/scripts/construct/build_pb.py --cpp_out=. --pb_files=cs_proto,cs_msgid,ss_proto,ss_msgid,navmesh --python_out=../tools/robot/virtualclient
|
||||||
)
|
)
|
||||||
add_dependencies(gameserver${GAME_ID} script_pb_protocol)
|
add_dependencies(robot${GAME_ID} script_pb_protocol)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
gameserver${GAME_ID}
|
robot${GAME_ID}
|
||||||
pthread
|
pthread
|
||||||
mysqlclient
|
mysqlclient
|
||||||
protobuf
|
protobuf
|
||||||
@ -131,12 +131,12 @@ target_link_libraries(
|
|||||||
|
|
||||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
gameserver${GAME_ID}
|
robot${GAME_ID}
|
||||||
behaviac_gcc_debug
|
behaviac_gcc_debug
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
gameserver${GAME_ID}
|
robot${GAME_ID}
|
||||||
tcmalloc
|
tcmalloc
|
||||||
behaviac_gcc_release
|
behaviac_gcc_release
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user