This commit is contained in:
aozhiwei 2020-11-09 18:47:53 +08:00
parent fb12c701bd
commit a7df7c2165

View File

@ -1,4 +1,4 @@
project(gameserver) project(gameserver2004)
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
set(GAME_ID 2001) set(GAME_ID 2001)
@ -71,7 +71,7 @@ set(EXECUTABLE_OUTPUT_PATH
) )
add_executable( add_executable(
gameserver${GAME_ID} ${SRC_LIST} gameserver2004 ${SRC_LIST}
) )
add_custom_target(script_pb_protocol ALL) add_custom_target(script_pb_protocol ALL)
@ -79,11 +79,11 @@ 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,metatable --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,metatable --python_out=../tools/robot/virtualclient
) )
add_dependencies(gameserver${GAME_ID} script_pb_protocol) add_dependencies(gameserver2004 script_pb_protocol)
if (CMAKE_BUILD_TYPE STREQUAL "Debug") if (CMAKE_BUILD_TYPE STREQUAL "Debug")
target_link_libraries( target_link_libraries(
gameserver${GAME_ID} gameserver2004
pthread pthread
mysqlclient mysqlclient
protobuf protobuf
@ -101,7 +101,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
) )
else() else()
target_link_libraries( target_link_libraries(
gameserver${GAME_ID} gameserver2004
pthread pthread
mysqlclient mysqlclient
protobuf protobuf