FindMbedTLS.cmake 604 B

1234567891011121314
  1. # Source: https://github.com/curl/curl/blob/curl-7_82_0/CMake/FindMbedTLS.cmake
  2. find_path(MBEDTLS_INCLUDE_DIRS mbedtls/ssl.h)
  3. find_library(MBEDTLS_LIBRARY mbedtls)
  4. find_library(MBEDX509_LIBRARY mbedx509)
  5. find_library(MBEDCRYPTO_LIBRARY mbedcrypto)
  6. set(MBEDTLS_LIBRARIES "${MBEDTLS_LIBRARY}" "${MBEDX509_LIBRARY}" "${MBEDCRYPTO_LIBRARY}")
  7. include(FindPackageHandleStandardArgs)
  8. find_package_handle_standard_args(MbedTLS DEFAULT_MSG
  9. MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY)
  10. mark_as_advanced(MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY)