refactor(Cmake): add support build selected applications and tools (#11836)
This commit is contained in:
+13
-16
@@ -10,22 +10,19 @@
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
|
||||
# Specified files for Windows
|
||||
if (WIN32)
|
||||
# Crash logs
|
||||
set(winDebugging
|
||||
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.h)
|
||||
add_subdirectory(apps)
|
||||
|
||||
# Service
|
||||
set(winService
|
||||
${CMAKE_SOURCE_DIR}/src/common/Platform/ServiceWin32.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/common/Platform/ServiceWin32.h)
|
||||
# if ((APPS_BUILD AND NOT APPS_BUILD STREQUAL "none") OR BUILD_TOOLS_DB_IMPORT) # DB import PR
|
||||
if ((APPS_BUILD AND NOT APPS_BUILD STREQUAL "none"))
|
||||
add_subdirectory(database)
|
||||
endif()
|
||||
|
||||
if (BUILD_APPLICATION_AUTHSERVER OR BUILD_APPLICATION_WORLDSERVER)
|
||||
add_subdirectory(shared)
|
||||
endif()
|
||||
|
||||
if (BUILD_APPLICATION_WORLDSERVER)
|
||||
add_subdirectory(game)
|
||||
add_subdirectory(scripts)
|
||||
endif()
|
||||
|
||||
add_subdirectory(authserver)
|
||||
add_subdirectory(database)
|
||||
add_subdirectory(game)
|
||||
add_subdirectory(shared)
|
||||
add_subdirectory(scripts)
|
||||
add_subdirectory(worldserver)
|
||||
|
||||
Reference in New Issue
Block a user