2015-02-28 00:05:29 +01:00
|
|
|
mark_as_advanced(CURL_LIBRARY CURL_INCLUDE_DIR)
|
2012-12-14 12:30:17 +01:00
|
|
|
|
2019-06-10 03:56:55 +02:00
|
|
|
find_library(CURL_LIBRARY NAMES curl libcurl)
|
2015-02-28 00:05:29 +01:00
|
|
|
find_path(CURL_INCLUDE_DIR NAMES curl/curl.h)
|
2012-12-14 12:30:17 +01:00
|
|
|
|
2015-02-28 00:05:29 +01:00
|
|
|
if(WIN32)
|
2019-06-10 03:56:55 +02:00
|
|
|
# If VCPKG_APPLOCAL_DEPS is ON, dll's are automatically handled by VCPKG
|
|
|
|
if(NOT VCPKG_APPLOCAL_DEPS)
|
|
|
|
find_file(CURL_DLL NAMES libcurl-4.dll libcurl.dll
|
|
|
|
DOC "Path to the cURL DLL (for installation)")
|
|
|
|
mark_as_advanced(CURL_DLL)
|
|
|
|
endif()
|
2015-02-28 00:05:29 +01:00
|
|
|
endif()
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
2019-06-10 03:56:55 +02:00
|
|
|
find_package_handle_standard_args(CURL DEFAULT_MSG CURL_LIBRARY CURL_INCLUDE_DIR)
|