Hi,
I am running into a cmake build error when i try to include external projects. Here's what i have done and what are the issues i am running into,
1) i studied the sdk-zephyr/external_library example
2) After looking at that example i created a custom firmware that depends on an external library. (i used Zephyr SPIM apis to create one of my own driver.) that project builds and runs successfully.
So the SPI_test project depends on the OmegaSPIController external library that i wrote. This compiles and works perfectly.
3) Now i need to create a different firmware.That main project will include 2 external libraries,
* OmegaSPIController (the one i created on 2nd step and tested)
* OmegaADS129xController (this is a new external library that i wrote. This library needs the OmegaSPIController library [there for this library has a dependency on SPI driver i wrote])
Above is the Project structure
Above is the CMakeLists.txt file of the project that includes both my external projects
Above is the Makefile of the OmegaSPIController external project
Above is the Makefile of the OmegaADS129xController external project. (Like i mentioned this project needs to depend on the OmegaSPIController external library)
Above is the header file of the ADS129X external library showing that it depends on the SPI
QUESTION:
When i try to compile the project the compilation failed due to the ADS129x code not seeing the SPI header file.
it almost feels like i need to add something on the CMakeLists.txt on the main project or inthe makefile of the ADS129x external library to make it see the SPI library.
1) Can someone let me know what i am missing?
2) What and where i need to add to make this code compile and link