2019-06-10 20:18:27 +02:00
|
|
|
find_path(MBEDTLS_INCLUDE_DIRS mbedtls/ssl.h)
|
|
|
|
|
2021-10-22 20:10:58 +02:00
|
|
|
# mbedtls-3.0 changed headers files, and we need to ifdef'out a few things
|
|
|
|
find_path(MBEDTLS_VERSION_GREATER_THAN_3 mbedtls/build_info.h)
|
|
|
|
|
2019-06-10 20:18:27 +02:00
|
|
|
find_library(MBEDTLS_LIBRARY mbedtls)
|
|
|
|
find_library(MBEDX509_LIBRARY mbedx509)
|
|
|
|
find_library(MBEDCRYPTO_LIBRARY mbedcrypto)
|
|
|
|
|
|
|
|
set(MBEDTLS_LIBRARIES "${MBEDTLS_LIBRARY}" "${MBEDX509_LIBRARY}" "${MBEDCRYPTO_LIBRARY}")
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
2020-06-04 18:41:12 +02:00
|
|
|
find_package_handle_standard_args(MbedTLS DEFAULT_MSG
|
2019-06-10 20:18:27 +02:00
|
|
|
MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY)
|
|
|
|
|
|
|
|
mark_as_advanced(MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY)
|