I want to implement a CMake-based build system for the following architecture:
As you can see: the
Modelcomponent has two interfaces:
What is the preferred way to implement this architecture?
ModelReadas separate targets, e. g.
Modelcomponent itself actually does not really exist as a dedicated target.
- Implementing the
Modelcomponent as a
Modeltarget and having
INTERFACEinclude directories containing the public headers/functions? The directories containing the public headers/functions are
PRIVATEkeyword to the
- Or maybe something completely different?
To keep things simple, targets can all be static libraries which are finally linked into an executable.
Thanks for your thoughts and ideas, Rainer