Skip to content

Commit

Permalink
libcurl, cli11, json to fetchcontent
Browse files Browse the repository at this point in the history
  • Loading branch information
raquentin committed Sep 8, 2024
1 parent 120ac6f commit f947194
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 36,924 deletions.
17 changes: 15 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22)
cmake_minimum_required(VERSION 3.24)
project(raquest)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_EXPORT_COMPILE_COMMAND ON)
Expand All @@ -9,6 +9,19 @@ add_subdirectory(src)
add_subdirectory(tests)

include(FetchContent)

FetchContent_Declare(
CLI11 URL https://github.com/CLIUtils/CLI11/archive/refs/tags/v2.3.2.zip)

FetchContent_Declare(
json
URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz)

FetchContent_Declare(
curl
URL https://github.com/curl/curl/releases/download/curl-7_81_0/curl-7.81.0.tar.gz
)

FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/refs/tags/release-1.12.1.zip)
Expand All @@ -18,6 +31,6 @@ set(gtest_force_shared_crt
ON
CACHE BOOL "" FORCE)

FetchContent_MakeAvailable(googletest)
FetchContent_MakeAvailable(googletest CLI11 json curl)

enable_testing()
Loading

0 comments on commit f947194

Please sign in to comment.