1c87c5fbaSopenharmony_cifind_path(MBEDTLS_INCLUDE_DIRS mbedtls/ssl.h) 2c87c5fbaSopenharmony_ci 3c87c5fbaSopenharmony_cifind_library(MBEDTLS_LIBRARY mbedtls) 4c87c5fbaSopenharmony_cifind_library(MBEDX509_LIBRARY mbedx509) 5c87c5fbaSopenharmony_cifind_library(MBEDCRYPTO_LIBRARY mbedcrypto) 6c87c5fbaSopenharmony_ci 7c87c5fbaSopenharmony_ciset(MBEDTLS_LIBRARIES 8c87c5fbaSopenharmony_ci "${MBEDTLS_LIBRARY}" 9c87c5fbaSopenharmony_ci "${MBEDX509_LIBRARY}" 10c87c5fbaSopenharmony_ci "${MBEDCRYPTO_LIBRARY}") 11c87c5fbaSopenharmony_ci 12c87c5fbaSopenharmony_ciif(MBEDTLS_LIBRARY) 13c87c5fbaSopenharmony_ci set(MbedTLS_FOUND TRUE) 14c87c5fbaSopenharmony_ciendif() 15c87c5fbaSopenharmony_ci 16c87c5fbaSopenharmony_ciinclude(FindPackageHandleStandardArgs) 17c87c5fbaSopenharmony_cifind_package_handle_standard_args( 18c87c5fbaSopenharmony_ci MBEDTLS 19c87c5fbaSopenharmony_ci DEFAULT_MSG 20c87c5fbaSopenharmony_ci MBEDTLS_INCLUDE_DIRS 21c87c5fbaSopenharmony_ci MBEDTLS_LIBRARY 22c87c5fbaSopenharmony_ci MBEDX509_LIBRARY 23c87c5fbaSopenharmony_ci MBEDCRYPTO_LIBRARY) 24c87c5fbaSopenharmony_ci 25c87c5fbaSopenharmony_cimark_as_advanced( 26c87c5fbaSopenharmony_ci MBEDTLS_INCLUDE_DIRS 27c87c5fbaSopenharmony_ci MBEDTLS_LIBRARY 28c87c5fbaSopenharmony_ci MBEDX509_LIBRARY 29c87c5fbaSopenharmony_ci MBEDCRYPTO_LIBRARY) 30c87c5fbaSopenharmony_ci 31c87c5fbaSopenharmony_cimessage(STATUS "MBEDTLS_INCLUDE_DIRS: ${MBEDTLS_INCLUDE_DIRS}") 32c87c5fbaSopenharmony_cimessage(STATUS "MBEDTLS_LIBRARY: ${MBEDTLS_LIBRARY}") 33c87c5fbaSopenharmony_cimessage(STATUS "MBEDX509_LIBRARY: ${MBEDX509_LIBRARY}") 34c87c5fbaSopenharmony_cimessage(STATUS "MBEDCRYPTO_LIBRARY: ${MBEDCRYPTO_LIBRARY}") 35c87c5fbaSopenharmony_cimessage(STATUS "MBEDTLS_LIBRARIES: ${MBEDTLS_LIBRARIES}") 36