1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-20 04:27:14 +01:00
SqMod/module/Vendor/CMakeLists.txt

46 lines
1.6 KiB
CMake
Raw Normal View History

# 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
add_subdirectory(SimpleIni)
add_subdirectory(AES256)
add_subdirectory(B64)
2020-09-05 00:02:20 +03:00
add_subdirectory(Fmt)
add_subdirectory(Hash)
2020-03-22 16:33:48 +02:00
add_subdirectory(MaxmindDB)
add_subdirectory(PUGIXML)
add_subdirectory(SQLite)
add_subdirectory(TinyDir)
add_subdirectory(Whirlpool)
2020-09-06 20:11:53 +03:00
#add_subdirectory(CivetWeb)
add_subdirectory(SimpleSocket)
2020-09-04 23:51:14 +03:00
add_subdirectory(ConcurrentQueue)
# CURL libraries are required
if (ENABLE_CURL)
add_subdirectory(CURL)
add_subdirectory(CPR)
endif()
# Build our own MySQL client on windows
if(WIN32 AND ENABLE_MYSQL)
2020-03-22 14:54:40 +02:00
add_subdirectory(MDBC)
endif()
# 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...