From 6ae46a7bf82a2cc70e4522457a6f75702f2f68a9 Mon Sep 17 00:00:00 2001 From: Vincent Stumpf Date: Sun, 11 Jun 2023 02:28:19 +0000 Subject: [PATCH] Add custom 'server' target --- CMakeLists.txt | 11 +++++------ src/web/CMakeLists.txt | 1 - 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 292ad75b7d..765f2a195f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,13 +61,12 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/lib/${suffixInsta set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) -# For windows, we need to copy scripts over -if (WIN32) - -endif() - add_subdirectory(db) add_subdirectory(conf) add_subdirectory(3rdparty) add_subdirectory(src) -add_subdirectory(tools) \ No newline at end of file +add_subdirectory(tools) + +add_custom_target(server + DEPENDS login-server char-server map-server web-server scripts +) diff --git a/src/web/CMakeLists.txt b/src/web/CMakeLists.txt index 00a6685e5d..93c6c8fec0 100644 --- a/src/web/CMakeLists.txt +++ b/src/web/CMakeLists.txt @@ -5,7 +5,6 @@ find_package(Threads REQUIRED) target_sources(web-server PRIVATE "auth.cpp" - "auth.hpp" "charconfig_controller.cpp" "emblem_controller.cpp" "merchantstore_controller.cpp"