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]