Files
esp-idf/examples/build_system/cmake/plugins/CMakeLists.txt
Frantisek Hrbata c368f15328 feat(examples): trim down the plugins example build
Set the COMPONENTS project variable to streamline the build process.
Although the minimal build feature could be used to specify plugin
components in the main component dependencies, it's more convenient to
set the plugin components at the project level. This approach also
allows for quick selection of which plugins to include in the
application.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2025-01-06 19:23:42 +01:00

9 lines
363 B
CMake

# The following three lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and plugins.
set(COMPONENTS main plugin_hello plugin_nihao)
project(plugins)