mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00

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>
9 lines
363 B
CMake
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)
|