From b424f1e2aee3516c482fc2f0968bde1af49a2f6f Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 1 May 2024 21:15:06 +0500 Subject: feat: added cpr dependency --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c1e769..ed4930f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,4 +28,9 @@ include(FetchContent) FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz) FetchContent_MakeAvailable(json) -target_link_libraries(Bot PRIVATE ixwebsocket pqxx nlohmann_json::nlohmann_json) +include(FetchContent) +FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git + GIT_TAG 1.10.5) +FetchContent_MakeAvailable(cpr) + +target_link_libraries(Bot PRIVATE ixwebsocket pqxx nlohmann_json::nlohmann_json cpr::cpr) -- cgit v1.2.3