### Configuring CMake for ESPuino Project with ESP-IDF Source: https://github.com/biologist79/espuino/blob/master/CMakeLists.txt Basic CMake setup for an ESP-IDF project named ESPuino. It specifies the minimum CMake version required (3.16.0), includes the ESP-IDF build system, and defines the project name. ```cmake cmake_minimum_required(VERSION 3.16.0) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(ESPuino) ``` -------------------------------- ### Registering ESP-IDF Component Source Files with CMake - CMake Source: https://github.com/biologist79/espuino/blob/master/src/CMakeLists.txt This snippet uses CMake commands to recursively collect all source files from the src directory and registers them with ESP-IDF using idf_component_register. The FILE(GLOB_RECURSE ...) command builds a list of files, stored in the app_sources variable, by matching any file under the src directory. The idf_component_register(SRCS ...) macro notifies ESP-IDF's build system to include these files as part of the component. There are no explicit input parameters; customization is achieved by changing the search path or patterns. Prerequisites include having ESP-IDF and CMake properly installed and configured. Limitations: GLOB_RECURSE may not capture new files if CMakeLists.txt is not regenerated. ```CMake FILE(GLOB_RECURSE app_sources ${CMAKE_SOURCE_DIR}/src/*.*) idf_component_register(SRCS ${app_sources}) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.