1find_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 8 "${MBEDTLS_LIBRARY}" 9 "${MBEDX509_LIBRARY}" 10 "${MBEDCRYPTO_LIBRARY}") 11 12if(MBEDTLS_LIBRARY) 13 set(MbedTLS_FOUND TRUE) 14endif() 15 16include(FindPackageHandleStandardArgs) 17find_package_handle_standard_args( 18 MBEDTLS 19 DEFAULT_MSG 20 MBEDTLS_INCLUDE_DIRS 21 MBEDTLS_LIBRARY 22 MBEDX509_LIBRARY 23 MBEDCRYPTO_LIBRARY) 24 25mark_as_advanced( 26 MBEDTLS_INCLUDE_DIRS 27 MBEDTLS_LIBRARY 28 MBEDX509_LIBRARY 29 MBEDCRYPTO_LIBRARY) 30 31message(STATUS "MBEDTLS_INCLUDE_DIRS: ${MBEDTLS_INCLUDE_DIRS}") 32message(STATUS "MBEDTLS_LIBRARY: ${MBEDTLS_LIBRARY}") 33message(STATUS "MBEDX509_LIBRARY: ${MBEDX509_LIBRARY}") 34message(STATUS "MBEDCRYPTO_LIBRARY: ${MBEDCRYPTO_LIBRARY}") 35message(STATUS "MBEDTLS_LIBRARIES: ${MBEDTLS_LIBRARIES}") 36