This commit is contained in:
aozhiwei 2019-12-06 15:13:10 +08:00
parent 30f3ab35b8
commit a97fc23e16

View File

@ -71,7 +71,7 @@ set(EXECUTABLE_OUTPUT_PATH
)
add_executable(
gameserver ${SRC_LIST}
gameserver${GAME_ID} ${SRC_LIST}
)
add_custom_target(script_pb_protocol ALL)
@ -80,11 +80,11 @@ add_custom_command(TARGET script_pb_protocol
COMMAND cp ../tools/protobuild/cs_*.* /root/opensource/game2009/client/assets/resources/
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 script_pb_protocol)
add_dependencies(gameserver${GAME_ID} script_pb_protocol)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
target_link_libraries(
gameserver
gameserver${GAME_ID}
pthread
mysqlclient
protobuf
@ -102,7 +102,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
)
else()
target_link_libraries(
gameserver
gameserver${GAME_ID}
pthread
mysqlclient
protobuf