CMake in esp-idf
Posted: Mon Oct 28, 2024 10:12 am
hello everyone,
I am currently working on structuring my project using CMake into multiple layers, such as “Drivers” and “Abstraction.”
Each layer must have its own subdirectory and associated CMakeLists.txt file. However, I am facing some challenges in properly configuring CMake to recognize and build each subdirectory, as well as linking dependencies between the layers.
How can I register the subdirectories in ESP-IDF using CMake ? because I have used the standard CMake Commands and they haven't been recognized.
Any help will be appreciated
I am currently working on structuring my project using CMake into multiple layers, such as “Drivers” and “Abstraction.”
Each layer must have its own subdirectory and associated CMakeLists.txt file. However, I am facing some challenges in properly configuring CMake to recognize and build each subdirectory, as well as linking dependencies between the layers.
How can I register the subdirectories in ESP-IDF using CMake ? because I have used the standard CMake Commands and they haven't been recognized.
Any help will be appreciated
- [
- project-root/
- - CMakeLists.txt
- - Drivers/
- - diver_1
- driver_1.c
- driver_1.h
- CMakelists.txt
- - driver_2
- driver_2.c
- driver_2.h
- CMakelists.txt
- - CMakeLists.txt
- - Abstraction/
- - CMakeLists.txt]