diff --git a/CMakeLists.txt b/CMakeLists.txt index fcb8e71f1..79f24c4ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1764,9 +1764,9 @@ set(GAME_GENERATED_SHARED src/game/generated/protocol7.h src/game/generated/protocolglue.h ) -set_src(MASTERSRV_SHARED GLOB src/mastersrv - mastersrv.cpp - mastersrv.h +set(MASTERSRV_SHARED + src/mastersrv/mastersrv.cpp + src/mastersrv/mastersrv.h ) set(DEPS ${DEP_JSON} ${DEP_MD5} ${ZLIB_DEP}) @@ -2287,7 +2287,7 @@ endif() ######################################################################## if(TOOLS) - set_src(MASTERSRV_SRC GLOB src/mastersrv main_mastersrv.cpp) + set(MASTERSRV_SRC src/mastersrv/main_mastersrv.cpp) set_src(TWPING_SRC GLOB src/twping twping.cpp) set(TARGET_MASTERSRV mastersrv) @@ -2336,6 +2336,9 @@ if(TOOLS) if(TOOL MATCHES "^config_") list(APPEND EXTRA_TOOL_SRC "src/tools/config_common.h") endif() + if(TOOL MATCHES "^fake_server") + list(APPEND TOOL_DEPS $) + endif() set(EXCLUDE_FROM_ALL) if(DEV) set(EXCLUDE_FROM_ALL EXCLUDE_FROM_ALL)