diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 39c1c1e..f7f29e5 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -1,8 +1,14 @@ set(EXTRA_COMPONENT_DIRS ../components) +set(comps heap nvs_flash meteofrance communication esp_netif image_downloader fatfs sdmmc vfs littlefs wifi_logger protocol_examples_common app_update esp_https_ota ) + +if(${IDF_TARGET} STREQUAL "esp32p4") + list(APPEND comps bsp_extra esp32_p4_function_ev_board) +endif() + idf_component_register(SRC_DIRS . fonts INCLUDE_DIRS "." - REQUIRES heap nvs_flash meteofrance communication 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 + REQUIRES ${comps} EMBED_TXTFILES ${project_dir}/main/ca_cert.pem)