lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | find_path(MBEDTLS_INCLUDE_DIRS mbedtls/ssl.h) |
| 2 | |
| 3 | find_library(MBEDTLS_LIBRARY mbedtls) |
| 4 | find_library(MBEDX509_LIBRARY mbedx509) |
| 5 | find_library(MBEDCRYPTO_LIBRARY mbedcrypto) |
| 6 | |
| 7 | set(MBEDTLS_LIBRARIES "${MBEDTLS_LIBRARY}" "${MBEDX509_LIBRARY}" "${MBEDCRYPTO_LIBRARY}") |
| 8 | |
| 9 | include(FindPackageHandleStandardArgs) |
| 10 | find_package_handle_standard_args(MBEDTLS DEFAULT_MSG |
| 11 | MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY) |
| 12 | |
| 13 | mark_as_advanced(MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY) |