1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00
SqMod/vendor/CMakeLists.txt
Sandu Liviu Catalin 4a8a7172d4 Add UTF8 library.
2021-09-19 14:23:47 +03:00

69 lines
2.4 KiB
CMake

add_subdirectory(ConcurrentQueue)
add_subdirectory(Fmt)
add_subdirectory(xxHash)
add_subdirectory(Squirrel)
add_subdirectory(SimpleIni)
add_subdirectory(TinyDir)
add_subdirectory(SAJSON)
add_subdirectory(CPR)
add_subdirectory(UTF8)
add_subdirectory(PUGIXML)
add_subdirectory(CivetWeb)
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)
set(ENABLE_MONGODB OFF CACHE INTERNAL "" FORCE)
set(ENABLE_DATA_ODBC OFF CACHE INTERNAL "" FORCE)
set(ENABLE_DATA_SQLITE ON CACHE INTERNAL "" FORCE)
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)
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)
# 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)
# Windows gets stupid sometimes
if (WIN32 AND MINGW)
target_compile_definitions(Foundation PUBLIC POCO_NO_FPENVIRONMENT=1)
endif()
# We have these on GCC
if(MINGW OR GCC)
set(ENABLE_INTRINSICS ON CACHE INTERNAL "" FORCE)
endif()
set(BUILD_TESTS OFF CACHE INTERNAL "" FORCE)
set(BUILD_SHARED OFF CACHE INTERNAL "" FORCE)
set(BUILD_STATIC ON CACHE INTERNAL "" FORCE)
if (WIN32 OR MINGW)
set(ZMQ_HAVE_IPC OFF CACHE INTERNAL "" FORCE)
endif()
add_subdirectory(ZMQ)
# Should we include DPP?
if (ENABLE_DISCORD)
add_subdirectory(DPP)
endif()