1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00
SqMod/vendor/CMakeLists.txt

101 lines
3.7 KiB
CMake
Raw Normal View History

add_subdirectory(ConcurrentQueue)
add_subdirectory(Fmt)
2021-08-22 21:27:08 +02:00
add_subdirectory(xxHash)
add_subdirectory(RPMalloc)
add_subdirectory(Squirrel)
add_subdirectory(SimpleIni)
add_subdirectory(TinyDir)
2021-07-16 19:42:34 +02:00
add_subdirectory(SAJSON)
2021-03-26 23:18:51 +01:00
add_subdirectory(CPR)
2021-09-19 13:23:47 +02:00
add_subdirectory(UTF8)
add_subdirectory(JSON)
add_subdirectory(Inja)
2021-07-03 19:42:44 +02:00
add_subdirectory(PUGIXML)
add_subdirectory(CivetWeb)
if (ENABLE_BUILTIN_MYSQL_C)
set(WITH_MSI OFF CACHE INTERNAL "" FORCE)
set(WITH_UNIT_TESTS OFF CACHE INTERNAL "" FORCE)
set(WITH_EXTERNAL_ZLIB ON CACHE INTERNAL "" FORCE)
set(WITH_CURL ON CACHE INTERNAL "" FORCE)
set(WITH_SSL ON CACHE INTERNAL "" FORCE)
add_subdirectory(MDBC)
endif()
2021-01-31 17:48:31 +01:00
set(BUILD_TESTING OFF CACHE INTERNAL "" FORCE)
set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "" FORCE)
add_subdirectory(MaxmindDB)
#set(POCO_STATIC ON CACHE INTERNAL "" FORCE)
set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "" FORCE)
set(ENABLE_FOUNDATION ON CACHE INTERNAL "" FORCE)
set(ENABLE_ENCODINGS ON CACHE INTERNAL "" FORCE)
set(ENABLE_ENCODINGS_COMPILER OFF CACHE INTERNAL "" FORCE)
set(ENABLE_XML ON CACHE INTERNAL "" FORCE)
set(ENABLE_JSON ON CACHE INTERNAL "" FORCE)
2021-02-02 20:35:32 +01:00
set(ENABLE_MONGODB OFF CACHE INTERNAL "" FORCE)
2021-02-03 15:22:19 +01:00
set(ENABLE_DATA_ODBC OFF CACHE INTERNAL "" FORCE)
set(ENABLE_DATA_SQLITE ON CACHE INTERNAL "" FORCE)
2021-02-02 20:35:32 +01:00
set(ENABLE_REDIS OFF CACHE INTERNAL "" FORCE)
set(ENABLE_PDF OFF CACHE INTERNAL "" FORCE)
set(ENABLE_UTIL ON CACHE INTERNAL "" FORCE)
set(ENABLE_NET ON CACHE INTERNAL "" FORCE)
set(ENABLE_NETSSL ON CACHE INTERNAL "" FORCE)
set(ENABLE_SEVENZIP OFF CACHE INTERNAL "" FORCE)
2021-02-02 20:35:32 +01:00
set(ENABLE_ZIP OFF CACHE INTERNAL "" FORCE)
set(ENABLE_CPPPARSER OFF CACHE INTERNAL "" FORCE)
set(ENABLE_POCODOC OFF CACHE INTERNAL "" FORCE)
set(ENABLE_PAGECOMPILER OFF CACHE INTERNAL "" FORCE)
set(ENABLE_PAGECOMPILER_FILE2PAGE OFF CACHE INTERNAL "" FORCE)
set(ENABLE_TESTS OFF CACHE INTERNAL "" FORCE)
set(ENABLE_ACTIVERECORD OFF CACHE INTERNAL "" FORCE)
set(ENABLE_ACTIVERECORD_COMPILER OFF CACHE INTERNAL "" FORCE)
set(POCO_UNBUNDLED OFF CACHE INTERNAL "" FORCE)
2021-09-12 15:12:30 +02:00
# Manualy enable some options if available
find_package(MySQL)
if(MYSQL_FOUND)
set(ENABLE_DATA_MYSQL ON CACHE INTERNAL "" FORCE)
endif()
find_package(PostgreSQL)
if(PostgreSQL_FOUND)
set(ENABLE_DATA_POSTGRESQL ON CACHE INTERNAL "" FORCE)
endif()
add_subdirectory(POCO)
2021-02-01 03:24:45 +01:00
# Windows gets stupid sometimes
if (WIN32 AND MINGW)
2021-08-18 20:35:25 +02:00
target_compile_definitions(Foundation PUBLIC POCO_NO_FPENVIRONMENT=1)
2021-02-01 03:24:45 +01:00
endif()
2021-02-02 18:07:02 +01:00
# We have these on GCC
if(MINGW OR GCC)
2021-08-18 20:35:25 +02:00
set(ENABLE_INTRINSICS ON CACHE INTERNAL "" FORCE)
2021-02-02 18:07:02 +01:00
endif()
set(BUILD_TESTS OFF CACHE INTERNAL "" FORCE)
set(BUILD_SHARED OFF CACHE INTERNAL "" FORCE)
set(BUILD_STATIC ON CACHE INTERNAL "" FORCE)
2021-07-06 19:18:45 +02:00
if (WIN32 OR MINGW)
2021-08-18 20:35:25 +02:00
set(ZMQ_HAVE_IPC OFF CACHE INTERNAL "" FORCE)
2021-07-06 19:18:45 +02:00
endif()
set(ENABLE_CURVE OFF CACHE INTERNAL "" FORCE)
set(WITH_LIBSODIUM OFF CACHE INTERNAL "" FORCE)
2021-08-18 20:35:25 +02:00
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()