CMake Sibling Shared Project Question


Steven Ghekiere <steven.ghekiere@...>
 

​Hi!


I'm developing a project with both a central device and end devices.


Since both projects use a lot of the same functions I've used, it would be beneficial if they could use the same files.


The structure I had in mind:


.

- modules

- tools

- zephyr

- my_applications

        - central

                -main.c

                -CMakeLists.txt

        -end

                -main.c

                -CMakeLists.txt

        -shared

                -lib1.c

                ​-lib1.h

                -CMakeLists.txt


I've been struggling quite a bit, I've tried several examples from searching the web.

My main problem is the shared library unable to find the Zephyr repository. 


If needed I'd be happy to send you the current versions of the CMakeLists, but they're quite bare basics so I don't know if they're of any use.

If there is an easier or better solution to this, feel free to comment :)


Thanks in advance,


Steven

Join users@lists.zephyrproject.org to automatically receive all group messages.