2021-01-27 07:27:48 +02:00
|
|
|
# ZLib is a shared common dependency
|
|
|
|
if (ENABLE_CURL OR ENABLE_DISCORD OR (WIN32 AND ENABLE_MYSQL))
|
|
|
|
add_subdirectory(ZLib)
|
|
|
|
set(ZLIB_ROOT "${CMAKE_BINARY_DIR}/module/Vendor/ZLib" CACHE INTERNAL "" FORCE)
|
|
|
|
set(ZLIB_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/ZLib" "${CMAKE_BINARY_DIR}/module/Vendor/ZLib" CACHE INTERNAL "" FORCE)
|
|
|
|
#set(ZLIB_LIBRARY zlibstatic CACHE INTERNAL "" FORCE)
|
|
|
|
find_package(ZLIB REQUIRED)
|
|
|
|
endif()
|
|
|
|
# Remaining libraries
|
2020-03-21 22:58:50 +02:00
|
|
|
add_subdirectory(SimpleIni)
|
|
|
|
add_subdirectory(AES256)
|
|
|
|
add_subdirectory(B64)
|
2020-09-05 00:02:20 +03:00
|
|
|
add_subdirectory(Fmt)
|
2020-03-21 22:58:50 +02:00
|
|
|
add_subdirectory(Hash)
|
2020-03-22 16:33:48 +02:00
|
|
|
add_subdirectory(MaxmindDB)
|
2020-03-21 23:12:14 +02:00
|
|
|
add_subdirectory(PUGIXML)
|
|
|
|
add_subdirectory(SQLite)
|
2020-03-21 22:58:50 +02:00
|
|
|
add_subdirectory(TinyDir)
|
|
|
|
add_subdirectory(Whirlpool)
|
2020-09-06 20:11:53 +03:00
|
|
|
#add_subdirectory(CivetWeb)
|
2020-04-20 04:46:05 +03:00
|
|
|
add_subdirectory(SimpleSocket)
|
2020-09-04 23:51:14 +03:00
|
|
|
add_subdirectory(ConcurrentQueue)
|
2021-01-27 07:27:48 +02:00
|
|
|
# CURL libraries are required
|
|
|
|
if (ENABLE_CURL)
|
|
|
|
add_subdirectory(CURL)
|
|
|
|
add_subdirectory(CPR)
|
|
|
|
endif()
|
|
|
|
# Build our own MySQL client on windows
|
2020-03-22 18:57:00 +02:00
|
|
|
if(WIN32 AND ENABLE_MYSQL)
|
2020-03-22 14:54:40 +02:00
|
|
|
add_subdirectory(MDBC)
|
2020-03-22 18:57:00 +02:00
|
|
|
endif()
|
2021-01-27 07:27:48 +02:00
|
|
|
# Discord libraries are required
|
|
|
|
if (ENABLE_DISCORD)
|
|
|
|
add_subdirectory(WebSocketPP)
|
|
|
|
set(ONLY_SLEEPY_DISCORD OFF CACHE INTERNAL "" FORCE)
|
|
|
|
set(AUTO_DOWNLOAD_LIBRARY OFF CACHE INTERNAL "" FORCE)
|
|
|
|
set(USE_CPR ON CACHE INTERNAL "" FORCE)
|
|
|
|
set(USE_WEBSOCKETPP ON CACHE INTERNAL "" FORCE)
|
|
|
|
set(USE_ASIO ON CACHE INTERNAL "" FORCE)
|
|
|
|
set(cpr_SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/CPR" CACHE INTERNAL "" FORCE)
|
|
|
|
set(asio_SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/ASIO" CACHE INTERNAL "" FORCE)
|
|
|
|
set(websocketpp_SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/WebSocketPP" CACHE INTERNAL "" FORCE)
|
|
|
|
add_subdirectory(SleepyDiscord)
|
|
|
|
endif()
|
|
|
|
# Disregard warnings from this library...
|