refactor(Cmake): add support build selected applications and tools (#11836)

This commit is contained in:
Kargatum
2022-05-31 17:05:39 +07:00
committed by GitHub
parent 40a5eef152
commit 4fbec972a8
56 changed files with 1006 additions and 622 deletions

28
deps/CMakeLists.txt vendored
View File

@@ -16,30 +16,34 @@ if(CMAKE_SYSTEM_NAME MATCHES "Windows")
endif()
endif()
add_subdirectory(SFMT)
add_subdirectory(argon2)
add_subdirectory(boost)
add_subdirectory(fmt)
add_subdirectory(jemalloc)
add_subdirectory(openssl)
add_subdirectory(stdfs)
add_subdirectory(threads)
add_subdirectory(utf8cpp)
if(SERVERS OR TOOLS)
add_subdirectory(boost)
# 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(mysql)
endif()
if (BUILD_APPLICATION_WORLDSERVER OR BUILD_TOOLS_MAPS)
add_subdirectory(zlib)
add_subdirectory(g3dlite)
add_subdirectory(recastnavigation)
add_subdirectory(fmt)
add_subdirectory(SFMT)
add_subdirectory(utf8cpp)
add_subdirectory(openssl)
add_subdirectory(argon2)
add_subdirectory(jemalloc)
add_subdirectory(stdfs)
endif()
if(SERVERS)
add_subdirectory(mysql)
if (BUILD_APPLICATION_WORLDSERVER)
add_subdirectory(readline)
add_subdirectory(gsoap)
add_subdirectory(gperftools)
endif()
if(TOOLS)
if (BUILD_TOOLS_MAPS)
add_subdirectory(bzip2)
add_subdirectory(libmpq)
endif()