set(EXTRA_COMPONENT_DIRS ../components) idf_component_register(SRC_DIRS . fonts INCLUDE_DIRS "." REQUIRES heap esp_wifi nvs_flash mqtt meteofrance esp_netif image_downloader fatfs sdmmc vfs littlefs wifi_logger protocol_examples_common app_update esp_https_ota bsp_extra esp32_p4_function_ev_board PRIV_REQUIRES littlefs EMBED_TXTFILES ${project_dir}/main/ca_cert.pem) set_source_files_properties( PROPERTIES COMPILE_OPTIONS "-DLV_LVGL_H_INCLUDE_SIMPLE;-Wno-format;-DLV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(montserrat_medium_12) LV_FONT_DECLARE(montserrat_medium_18) LV_FONT_DECLARE(montserrat_medium_24)" ) lvgl_port_create_c_image("images/wifi_ok.png" "images/" "ARGB8888" "NONE") lvgl_port_create_c_image("images/wifi_ko.png" "images/" "ARGB8888" "NONE") lvgl_port_create_c_image("images/mqtt_ok.png" "images/" "AUTO" "NONE") lvgl_port_create_c_image("images/mqtt_ko.png" "images/" "ARGB8888" "NONE") lvgl_port_add_images(${COMPONENT_LIB} "images/") littlefs_create_partition_image(littlefs images_meteo FLASH_IN_PROJECT)