# Delivered ESP-IDF component for libweakword.a (generated into
# lib_out/weakword/ by tools/pack.sh — do not edit the copy under lib_out/;
# edit this template instead).

if(NOT COMMAND idf_component_register)
    message(FATAL_ERROR "weakword is an ESP-IDF prebuilt component.")
endif()

set(WEAKWORD_REQUIRES
    espressif__esp-nn
    mbedtls
    json
    esp_http_client
    esp-tls
    esp_wifi
    esp_netif
    esp_event
    esp_timer
    esp_partition
    nvs_flash
    efuse
    esp_hw_support
    freertos
    lwip
    cxx
)

idf_component_register(
    INCLUDE_DIRS "include"
    REQUIRES ${WEAKWORD_REQUIRES}
)

add_prebuilt_library(weakword_prebuilt
    "${CMAKE_CURRENT_LIST_DIR}/lib/libweakword.a"
    REQUIRES ${WEAKWORD_REQUIRES})
target_link_libraries(${COMPONENT_LIB} INTERFACE weakword_prebuilt m)
