Przeglądaj źródła

Add custom 'server' target

Vincent Stumpf 1 rok temu
rodzic
commit
6ae46a7bf8
2 zmienionych plików z 5 dodań i 7 usunięć
  1. 5 6
      CMakeLists.txt
  2. 0 1
      src/web/CMakeLists.txt

+ 5 - 6
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)
+add_subdirectory(tools)
+
+add_custom_target(server
+    DEPENDS login-server char-server map-server web-server scripts
+)

+ 0 - 1
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"