FindCURL.cmake 526 B

12345678910111213141516
  1. mark_as_advanced(CURL_LIBRARY CURL_INCLUDE_DIR)
  2. find_library(CURL_LIBRARY NAMES curl libcurl)
  3. find_path(CURL_INCLUDE_DIR NAMES curl/curl.h)
  4. if(WIN32)
  5. # If VCPKG_APPLOCAL_DEPS is ON, dll's are automatically handled by VCPKG
  6. if(NOT VCPKG_APPLOCAL_DEPS)
  7. find_file(CURL_DLL NAMES libcurl-4.dll libcurl.dll
  8. DOC "Path to the cURL DLL (for installation)")
  9. mark_as_advanced(CURL_DLL)
  10. endif()
  11. endif()
  12. include(FindPackageHandleStandardArgs)
  13. find_package_handle_standard_args(CURL DEFAULT_MSG CURL_LIBRARY CURL_INCLUDE_DIR)