My application is composed by three different source code repositories, organized as follows:
+--- app
L---- lib1
| L-- src
| L-- include
L---- lib2
| L-- src
| L-- include
L---- src
L-- include
The sub-folders "lib1" and "lib2" contain libraries that I need to build my application, which has its source under "src".
How can I create the CMakeList.txt file to build lib1 and lib2 as static libraries, then link them to my source ?
I tried to use the example here "https://cmake.org/examples/", but the libraries are built without the Zephyr and board specific options. As
a result, when it tries to link the static libs it complains that the CPU architectures does not match.
I tried as well to use the CMakeLists.txt from the Zephyr example "samples\application_development\external_lib" but it appears to need
make, which is something I don't have on Windows.