From 4dd2064aae51c15b24e6360c91ece5c2294852b9 Mon Sep 17 00:00:00 2001 From: William JCM Date: Thu, 22 Jul 2021 11:36:37 +0200 Subject: [PATCH] Add cpr. --- .gitmodules | 4 ++++ CMakeLists.txt | 4 ++++ src/CMakeLists.txt | 1 + third-party/cpr | 1 + 4 files changed, 10 insertions(+) create mode 160000 third-party/cpr diff --git a/.gitmodules b/.gitmodules index cf03968..fb0120f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -26,3 +26,7 @@ path = third-party/efsw url = https://github.com/SpartanJ/efsw branch = master +[submodule "third-party/cpr"] + path = third-party/cpr + url = https://github.com/whoshuu/cpr + branch = master diff --git a/CMakeLists.txt b/CMakeLists.txt index b44bea4..376be36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,4 +88,8 @@ set(BUILD_TEST_APP OFF CACHE BOOL "" FORCE) set(EFSW_INSTALL OFF CACHE BOOL "" FORCE) add_subdirectory(third-party/efsw EXCLUDE_FROM_ALL) +set(CPR_BUILD_TESTS OFF CACHE BOOL "" FORCE) +set(CMAKE_USE_LIBSSH2 OFF CACHE BOOL "" FORCE) +add_subdirectory(third-party/cpr EXCLUDE_FROM_ALL) + add_subdirectory(src) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a4d41a1..364af8f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -75,5 +75,6 @@ target_link_libraries(MassBuilderSaveTool PRIVATE MagnumIntegration::ImGui efsw zip + cpr::cpr imm32 wtsapi32) diff --git a/third-party/cpr b/third-party/cpr new file mode 160000 index 0000000..814bd09 --- /dev/null +++ b/third-party/cpr @@ -0,0 +1 @@ +Subproject commit 814bd0926379cfc786dd1d9df9ce266a4bb6cf59