Hi All,<br><br> I use cmake to in project with only 1 level of subdirectory. In each of those subdirectories i have a CMakeLitst.txt which creates <span style="font-weight: bold;">a <span style="font-weight: bold;">
static </span>library</span> out of its source files and put them in a <span style="font-weight: bold;">single common directory</span>. Finally the main CmakeLists.txt will use all those l<span style="font-weight: bold;">
individual static libraries</span> to create the application. Now there is a requirement like, i want to combine all those <span style="font-weight: bold;">individual static libraries</span> to a single static or shared library. I know i have to run "ar x
library.a" to get back the object files from each of those <span style="font-weight: bold;">individual static libraries</span> and then combine them back to a single library. <br><br> How can i do this in an efficient manner ? Is there any way by which the cmake will initially put the
<span style="font-weight: bold;">object files</span> to a single common directory so that i can use them to create a single static library out of them instead of combining each of my static libraries. Or could you suggest anything better ?
<br><br>Thanks in advance <br>Kiran<br><br> <br><br> <br>