Hi All,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>&nbsp; to create the application.&nbsp; Now there&nbsp; 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 &quot;ar x 
library.a&quot;&nbsp; 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&nbsp; library. <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>