1
This commit is contained in:
parent
30f3ab35b8
commit
a97fc23e16
@ -71,7 +71,7 @@ set(EXECUTABLE_OUTPUT_PATH
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
gameserver ${SRC_LIST}
|
gameserver${GAME_ID} ${SRC_LIST}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_target(script_pb_protocol ALL)
|
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 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
|
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")
|
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
gameserver
|
gameserver${GAME_ID}
|
||||||
pthread
|
pthread
|
||||||
mysqlclient
|
mysqlclient
|
||||||
protobuf
|
protobuf
|
||||||
@ -102,7 +102,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
gameserver
|
gameserver${GAME_ID}
|
||||||
pthread
|
pthread
|
||||||
mysqlclient
|
mysqlclient
|
||||||
protobuf
|
protobuf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user