mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Added ability to fetch media from remote server (using cURL library)
This commit is contained in:
parent
aa46e5c5e7
commit
3578e1d4a7
12 changed files with 278 additions and 49 deletions
17
cmake/Modules/FindCURL.cmake
Normal file
17
cmake/Modules/FindCURL.cmake
Normal file
|
@ -0,0 +1,17 @@
|
|||
# - Find curl
|
||||
# Find the native CURL headers and libraries.
|
||||
#
|
||||
# CURL_INCLUDE_DIR - where to find curl/curl.h, etc.
|
||||
# CURL_LIBRARY - List of libraries when using curl.
|
||||
# CURL_FOUND - True if curl found.
|
||||
|
||||
# Look for the header file.
|
||||
FIND_PATH(CURL_INCLUDE_DIR NAMES curl/curl.h)
|
||||
|
||||
# Look for the library.
|
||||
FIND_LIBRARY(CURL_LIBRARY NAMES curl)
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set CURL_FOUND to TRUE if
|
||||
# all listed variables are TRUE
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CURL DEFAULT_MSG CURL_LIBRARY CURL_INCLUDE_DIR)
|
Loading…
Add table
Add a link
Reference in a new issue