blob: a91639589218f082d349c69aba941b007f636572 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001find_path(MBEDTLS_INCLUDE_DIRS mbedtls/ssl.h)
2
3find_library(MBEDTLS_LIBRARY mbedtls)
4find_library(MBEDX509_LIBRARY mbedx509)
5find_library(MBEDCRYPTO_LIBRARY mbedcrypto)
6
7set(MBEDTLS_LIBRARIES "${MBEDTLS_LIBRARY}" "${MBEDX509_LIBRARY}" "${MBEDCRYPTO_LIBRARY}")
8
9include(FindPackageHandleStandardArgs)
10find_package_handle_standard_args(MBEDTLS DEFAULT_MSG
11 MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY)
12
13mark_as_advanced(MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY)