CMakeLists.txt 770 B

1234567891011121314151617181920212223242526
  1. set(srcs esp_tls.c)
  2. if(CONFIG_ESP_TLS_USING_MBEDTLS)
  3. list(APPEND srcs
  4. "esp_tls_mbedtls.c")
  5. endif()
  6. if(CONFIG_ESP_TLS_USING_WOLFSSL)
  7. list(APPEND srcs
  8. "esp_tls_wolfssl.c")
  9. endif()
  10. idf_component_register(SRCS "${srcs}"
  11. INCLUDE_DIRS "."
  12. PRIV_INCLUDE_DIRS "private_include"
  13. REQUIRES mbedtls
  14. PRIV_REQUIRES lwip nghttp)
  15. if(CONFIG_ESP_TLS_USING_WOLFSSL)
  16. idf_component_get_property(wolfssl esp-wolfssl COMPONENT_LIB)
  17. target_link_libraries(${COMPONENT_LIB} PUBLIC ${wolfssl})
  18. endif()
  19. if(CONFIG_ESP_TLS_USE_SE)
  20. idf_component_get_property(cryptoauthlib esp-cryptoauthlib COMPONENT_LIB)
  21. target_link_libraries(${COMPONENT_LIB} PUBLIC ${cryptoauthlib})
  22. endif()