feat(cmakev2): Added import_lib example for cmakev2

This commit updates the examples/build_system/cmake/import_lib
example for the new build system and adds the newly created example at
examples/build_system/cmakev2/features/import_lib.
This commit is contained in:
Sudeep Mohanty
2026-03-20 08:13:26 +01:00
committed by Frantisek Hrbata
parent c8cadc6d5d
commit eca3da0f98
9 changed files with 202 additions and 0 deletions
+13
View File
@@ -106,6 +106,19 @@ Demonstrates using ESP-IDF component manager with `cmakev2`
**Key Concepts:** Defining component dependencies for the application using `idf_component.yml`
---
### import_lib
**Location:** [import_lib/](.feature/import_lib/)
Demonstrates importing external third-party libraries using CMake's `ExternalProject` module.
**Key Concepts:** `ExternalProject_Add()`, cross-compilation, `add_prebuilt_library()`
**When to use:** When you need to download and build external libraries as part of your project.
---
## Build System v2 API Quick Reference
### Project Setup