1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Reduce CMake requirements.

This commit is contained in:
Sandu Liviu Catalin 2021-02-01 01:02:00 +02:00
parent d7078551c6
commit 187761b137
3 changed files with 9 additions and 8 deletions

View File

@ -105,7 +105,7 @@ if(WIN32 OR MINGW)
target_link_libraries(SqModule wsock32 ws2_32 shlwapi) target_link_libraries(SqModule wsock32 ws2_32 shlwapi)
endif() endif()
# Link to base libraries # Link to base libraries
target_link_libraries(SqModule Squirrel FmtLib SimpleINI TinyDir ConcurrentQueue cpr::cpr maxminddb::maxminddb) target_link_libraries(SqModule Squirrel FmtLib SimpleINI TinyDir ConcurrentQueue cpr maxminddb)
# Link to POCO libraries # Link to POCO libraries
target_link_libraries(SqModule Poco::Foundation Poco::Encodings Poco::Crypto Poco::Util Poco::Data Poco::Net Poco::JSON Poco::XML Poco::Zip Poco::JWT Poco::Redis Poco::MongoDB) target_link_libraries(SqModule Poco::Foundation Poco::Encodings Poco::Crypto Poco::Util Poco::Data Poco::Net Poco::JSON Poco::XML Poco::Zip Poco::JWT Poco::Redis Poco::MongoDB)
# Does POCO have SQLite support? # Does POCO have SQLite support?

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15) cmake_minimum_required(VERSION 3.7)
project(cpr VERSION 1.5.1 LANGUAGES CXX) project(cpr VERSION 1.5.1 LANGUAGES CXX)
set_property(GLOBAL PROPERTY USE_FOLDERS ON) set_property(GLOBAL PROPERTY USE_FOLDERS ON)
@ -49,7 +49,8 @@ endif()
include(GNUInstallDirs) include(GNUInstallDirs)
include(FetchContent) # Disabled to reduce CMAke requirements
#include(FetchContent)
include(cmake/code_coverage.cmake) include(cmake/code_coverage.cmake)
include(cmake/sanitizer.cmake) include(cmake/sanitizer.cmake)
include(cmake/gcc_analyze.cmake) include(cmake/gcc_analyze.cmake)
@ -128,7 +129,7 @@ if(NOT USE_SYSTEM_CURL OR NOT CURL_FOUND)
endif() endif()
# GTest configuration # GTest configuration
if(BUILD_CPR_TESTS) #[[if(BUILD_CPR_TESTS)
if(USE_SYSTEM_GTEST) if(USE_SYSTEM_GTEST)
find_package(GTest) find_package(GTest)
endif() endif()
@ -156,11 +157,11 @@ if(BUILD_CPR_TESTS)
set_property(TARGET gtest PROPERTY FOLDER "tests/gtest") set_property(TARGET gtest PROPERTY FOLDER "tests/gtest")
set_property(TARGET gtest_main PROPERTY FOLDER "tests/gtest") set_property(TARGET gtest_main PROPERTY FOLDER "tests/gtest")
endif() endif()
endif() endif()]]
# Mongoose configuration # Mongoose configuration
if(BUILD_CPR_TESTS) #[[if(BUILD_CPR_TESTS)
message(STATUS "Building mongoose project for test support.") message(STATUS "Building mongoose project for test support.")
if (SSL_ENABLED) if (SSL_ENABLED)
find_package(OpenSSL) find_package(OpenSSL)
@ -197,4 +198,4 @@ add_subdirectory(include)
if(BUILD_CPR_TESTS) if(BUILD_CPR_TESTS)
enable_testing() enable_testing()
add_subdirectory(test) add_subdirectory(test)
endif() endif()]]

View File

@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9) cmake_minimum_required (VERSION 3.7)
project(maxminddb project(maxminddb
LANGUAGES C LANGUAGES C
VERSION 1.5.0 VERSION 1.5.0