domotic/main/CMakeLists.txt
2025-12-11 18:51:22 +01:00

29 lines
1.1 KiB
CMake

idf_build_get_property(python SIMULATION_QEMU)
message(STATUS "The Python interpreter is: ${python}")
set(comps heap nvs_flash esp_netif image_downloader fatfs protocol_examples_common mqtt)
if(${IDF_TARGET} STREQUAL "esp32p4")
message(STATUS "SIMULATION_QEMU = OOF --> main standard")
list(APPEND comps bsp_extra esp32_p4_function_ev_board sdmmc vfs littlefs wifi_logger app_update esp_https_ota espcoredump esp_http_server esp_wifi )
idf_component_register(SRCS main.c obtain_time.c communication.c
INCLUDE_DIRS "./include"
REQUIRES ${comps}
EMBED_TXTFILES ${PROJECT_DIR}/main/ca_cert.pem
EMBED_FILES "index.html")
else()
message(STATUS "SIMULATION_QEMU = On vide le main")
idf_component_register(SRCS test_main.c)
return()
endif()
#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)"
# )