Introduced curl dependency
This commit is contained in:
1
3rdParty/CMakeLists.txt
vendored
1
3rdParty/CMakeLists.txt
vendored
@@ -20,3 +20,4 @@ add_subdirectory(libstud-uuid)
|
||||
add_subdirectory(rapidyaml)
|
||||
add_subdirectory(libarchive)
|
||||
add_subdirectory(libjpeg-turbo)
|
||||
add_subdirectory(curl)
|
||||
|
||||
17
3rdParty/curl/CMakeLists.txt
vendored
Normal file
17
3rdParty/curl/CMakeLists.txt
vendored
Normal file
@@ -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)
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user