set(src_dirs
    LED
    DELAY
    USART
    WIFI
    MQTT
    SENSOR
    )

set(include_dirs
    LED
    DELAY
    USART
    WIFI
    MQTT
    SENSOR
    )

set(requires
    driver
    esp_wifi
    esp_netif
    esp_event
    nvs_flash
    mqtt
    json
    )

idf_component_register(SRC_DIRS "${src_dirs}"
                       INCLUDE_DIRS "${include_dirs}"
                       REQUIRES "${requires}"
                       )

component_compile_options(-ffast-math -O0 -Wno-error=format=-Wno-format)
