Hi,
I have the following structure in my source code:
Code:
MyProject
|
+---mylib
| |
| +---module1
| |
| +---module2
| |
| +---module...
|
+---myExe1
|
+---myExe2
The code in each module builds cleanly for itself. I'd like to build each module into its own libmodule
n.a, which is no big deal with cmake - I just create a STATIC library.
On "mylib"-level I have just ADD_SUBDIRECTORY commands, so that cmake descends into each module. Now I'd like to bundle all modules' .a files into one single shared library libmylib.so.
How can I do that using cmake?
The shared library shall then be used to link all executables against.
Cheers
Matt