diff options
author | Ilya Zhuravlev <zhuravlevilya@ya.ru> | 2012-12-14 15:30:17 +0400 |
---|---|---|
committer | Ilya Zhuravlev <zhuravlevilya@ya.ru> | 2012-12-16 15:20:18 +0400 |
commit | 3578e1d4a711a32e2e768dcc6ff207ffc1bccbad (patch) | |
tree | 9215740fb64bbb89ce9b9ba89f8ebf0db709ee35 /cmake/Modules | |
parent | aa46e5c5e7285a8ac5c9e096a55c3fa02b90280e (diff) | |
download | minetest-3578e1d4a711a32e2e768dcc6ff207ffc1bccbad.tar.gz minetest-3578e1d4a711a32e2e768dcc6ff207ffc1bccbad.tar.bz2 minetest-3578e1d4a711a32e2e768dcc6ff207ffc1bccbad.zip |
Added ability to fetch media from remote server (using cURL library)
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/FindCURL.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cmake/Modules/FindCURL.cmake b/cmake/Modules/FindCURL.cmake new file mode 100644 index 000000000..ec0503fd9 --- /dev/null +++ b/cmake/Modules/FindCURL.cmake @@ -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) |