From 285396f9ce4dd368f900f0253fb3f3d0b7b45a53 Mon Sep 17 00:00:00 2001 From: Vladyslav Baranovskyi Date: Sun, 16 Jun 2024 18:46:35 +0300 Subject: [PATCH] Introduced curl dependency --- 3rdParty/CMakeLists.txt | 1 + 3rdParty/curl/CMakeLists.txt | 17 +++++++++++++++++ CMakeLists.txt | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 3rdParty/curl/CMakeLists.txt diff --git a/3rdParty/CMakeLists.txt b/3rdParty/CMakeLists.txt index cc7e174..c439368 100644 --- a/3rdParty/CMakeLists.txt +++ b/3rdParty/CMakeLists.txt @@ -20,3 +20,4 @@ add_subdirectory(libstud-uuid) add_subdirectory(rapidyaml) add_subdirectory(libarchive) add_subdirectory(libjpeg-turbo) +add_subdirectory(curl) diff --git a/3rdParty/curl/CMakeLists.txt b/3rdParty/curl/CMakeLists.txt new file mode 100644 index 0000000..84908ad --- /dev/null +++ b/3rdParty/curl/CMakeLists.txt @@ -0,0 +1,17 @@ +include(FetchContent) + +if(NOT DEFINED CURL_REPO) + set(CURL_REPO https://github.com/curl/curl) +endif() + +FetchContent_Declare( + curl + GIT_REPOSITORY ${CURL_REPO} + GIT_TAG curl-7_79_1 +) + +set(BUILD_CURL_EXE OFF) +set(CURL_USE_OPENSSL OFF) +set(CURL_USE_ZLIB OFF) + +FetchContent_MakeAvailable(curl) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7121b05..e5a92aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,7 +94,7 @@ endif() list(APPEND CMAKE_PREFIX_PATH ${CMAKE_BINARY_DIR}/deps/INSTALL) -target_link_libraries(openVulkanoCpp PRIVATE magic_enum yaml-cpp fmt spdlog glm pugixml stb eigen utf8cpp imgui_internal TracyClient stud-uuid ryml) +target_link_libraries(openVulkanoCpp PRIVATE magic_enum yaml-cpp fmt spdlog glm pugixml stb eigen utf8cpp imgui_internal TracyClient stud-uuid ryml CURL::libcurl) add_compile_definitions(LIBARCHIVE_STATIC) add_compile_definitions(NOMINMAX)