2
0

FindMbedTLS.cmake 524 B

12345678910111213
  1. find_path(MBEDTLS_INCLUDE_DIRS mbedtls/ssl.h)
  2. find_library(MBEDTLS_LIBRARY mbedtls)
  3. find_library(MBEDX509_LIBRARY mbedx509)
  4. find_library(MBEDCRYPTO_LIBRARY mbedcrypto)
  5. set(MBEDTLS_LIBRARIES "${MBEDTLS_LIBRARY}" "${MBEDX509_LIBRARY}" "${MBEDCRYPTO_LIBRARY}")
  6. include(FindPackageHandleStandardArgs)
  7. find_package_handle_standard_args(MBEDTLS DEFAULT_MSG
  8. MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY)
  9. mark_as_advanced(MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY)