I want to build a NCS project with a folder structure that might be something like this
project_folder | | |-- components | | | |-- adc | | |-- include | | | | adc.h | | | | | |-- src | | | | adc.c | | | | | | CMakeLists.txt | | | | | |-- twi | | |-- include | | | | twi.h | | | | | |-- src | | | | twi.c | | | | | | CMakeLists.txt | | |-- main | | main.c | | CMakeLists.txt | | | CMakeLists.txt | prj.conf | README.md | .gitignore
How can I achieve this using CMake? Is there an alternate way of doing this? Right now I'm including all the libraries in the CMakeLists.txt inside the parent directory, which I do not want to do.
Any help would be greatly appreciated.