FindCURL.cmake 527 B

12345678910111213141516171819
  1. mark_as_advanced(CURL_LIBRARY CURL_INCLUDE_DIR)
  2. find_library(CURL_LIBRARY NAMES curl)
  3. find_path(CURL_INCLUDE_DIR NAMES curl/curl.h)
  4. set(CURL_REQUIRED_VARS CURL_LIBRARY CURL_INCLUDE_DIR)
  5. if(WIN32)
  6. find_file(CURL_DLL NAMES libcurl-4.dll
  7. PATHS
  8. "C:/Windows/System32"
  9. DOC "Path to the cURL DLL (for installation)")
  10. mark_as_advanced(CURL_DLL)
  11. set(CURL_REQUIRED_VARS ${CURL_REQUIRED_VARS} CURL_DLL)
  12. endif()
  13. include(FindPackageHandleStandardArgs)
  14. find_package_handle_standard_args(CURL DEFAULT_MSG ${CURL_REQUIRED_VARS})