mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
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:
committed by
Frantisek Hrbata
parent
c8cadc6d5d
commit
eca3da0f98
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user