feat(cmakev2): Added conditional_component example for cmakev2

This commit adds a new example at
examples/build_system/cmakev2/features/conditional_components to
demonstrate the cmakev2 ability to conditionally include components in
the build based on Kconfig options.
This commit is contained in:
Sudeep Mohanty
2026-03-20 08:13:27 +01:00
committed by Frantisek Hrbata
parent fb9143e2c9
commit 1a51a0ad01
12 changed files with 314 additions and 0 deletions
+9
View File
@@ -158,6 +158,15 @@ Demonstrates link-time plugin registration using whole-archive linking and const
---
### conditional_component
**Location:** [conditional_component](./features/conditional_component/)
Demonstrates the use of the Kconfig configuration system to conditionally include or exclude components in the build.
**Key Concepts:** Kconfig configuration, `idf_component_include()`
**When to use:** When you need to build applications or components that must conditionally depend on other components based on `sdkconfig` options.
## Build System v2 API Quick Reference
### Project Setup