domotic/main/CMakeLists.txt
2025-05-21 20:56:47 +02:00

24 lines
828 B
CMake

set(EXTRA_COMPONENT_DIRS ../components)
set(comps heap nvs_flash meteofrance esp_netif image_downloader fatfs protocol_examples_common mqtt domotic_display )
if(${IDF_TARGET} STREQUAL "esp32p4")
list(APPEND comps sdmmc vfs littlefs wifi_logger app_update esp_https_ota espcoredump esp_http_server esp_wifi)
endif()
idf_component_register(SRC_DIRS .
INCLUDE_DIRS "."
REQUIRES ${comps}
EMBED_TXTFILES ${project_dir}/main/ca_cert.pem
EMBED_FILES "index.html")
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)"
)