cmake_minimum_required(VERSION 3.16)

include("${CMAKE_SOURCE_DIR}/tools/cmake/esp_idf_patch.cmake")
include("${CMAKE_SOURCE_DIR}/tools/cmake/flash_partition_defaults.cmake")

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(basic_demo)
include("${CMAKE_SOURCE_DIR}/tools/cmake/board_manager_patch.cmake")

include("${CMAKE_SOURCE_DIR}/tools/cmake/skills_sync.cmake")

fatfs_create_spiflash_image(storage fatfs_image FLASH_IN_PROJECT)
basic_demo_enable_component_skills_sync(
    TARGET fatfs_storage_bin
    DEMO_SKILLS_DIR "${CMAKE_SOURCE_DIR}/fatfs_image/skills"
    MANIFEST_PATH "${CMAKE_BINARY_DIR}/component_skills_manifest.json"
)
