mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-07-25 09:57:12 +02:00
Incomplete Discord implementation.
This commit is contained in:
Vendored
+25
@@ -8,6 +8,8 @@ add_subdirectory(TinyDir)
|
||||
add_subdirectory(SAJSON)
|
||||
add_subdirectory(CPR)
|
||||
add_subdirectory(UTF8)
|
||||
add_subdirectory(JSON)
|
||||
add_subdirectory(Inja)
|
||||
add_subdirectory(PUGIXML)
|
||||
add_subdirectory(CivetWeb)
|
||||
if (ENABLE_BUILTIN_MYSQL_C)
|
||||
@@ -71,3 +73,26 @@ if (WIN32 OR MINGW)
|
||||
set(ZMQ_HAVE_IPC OFF CACHE INTERNAL "" FORCE)
|
||||
endif()
|
||||
add_subdirectory(ZMQ)
|
||||
if(ENABLE_DISCORD)
|
||||
set(BUILD_TESTING OFF CACHE INTERNAL "" FORCE)
|
||||
set(BUILD_VOICE_SUPPORT OFF CACHE INTERNAL "" FORCE)
|
||||
set(DPP_INSTALL OFF CACHE INTERNAL "" FORCE)
|
||||
set(DPP_BUILD_TEST OFF CACHE INTERNAL "" FORCE)
|
||||
set(DPP_NO_VCPKG ON CACHE INTERNAL "" FORCE)
|
||||
set(DPP_CORO OFF CACHE INTERNAL "" FORCE)
|
||||
set(DPP_USE_EXTERNAL_JSON ON CACHE INTERNAL "" FORCE)
|
||||
if (WIN32 OR MINGW)
|
||||
set(BUILD_SHARED_LIBS ON CACHE INTERNAL "" FORCE)
|
||||
endif()
|
||||
add_subdirectory(DPP)
|
||||
target_link_libraries(dpp PRIVATE nlohmann_json)
|
||||
set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "" FORCE)
|
||||
# We don't care about DPP warnings
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||
target_compile_options(dpp PRIVATE -w)
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
target_compile_options(dpp PRIVATE -w)
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||||
target_compile_options(dpp PRIVATE /w)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user