<br><br><div><span class="gmail_quote">On 12/4/06, <b class="gmail_sendername">Alexander Neundorf</b> &lt;<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Von: &quot;Kiran Pradeep&quot; &lt;<a href="mailto:kiran.happy@gmail.com">kiran.happy@gmail.com</a>&gt;<br><br>&gt; Hi All,<br>&gt;<br>&gt; I use cmake to in project with only 1 level of subdirectory.<br>&gt; In each of those subdirectories i have a 
CMakeLitst.txt which creates a<br>&gt; static library out of its source files and put them in a single common<br>&gt; directory.<br>&gt; Finally the main CmakeLists.txt will use all those lindividual static<br>&gt; libraries&nbsp;&nbsp;to create the application.&nbsp;&nbsp;Now there&nbsp;&nbsp;is a requirement like,
<br>&gt; i want to combine all those individual static libraries to a single<br>&gt; static or shared library. I know i have to run &quot;ar x library.a&quot;&nbsp;&nbsp;to get<br>&gt; back the<br><br>Is there a reason why you want to do that ?
<br>You can also simply set some variables which will contain the lists of source files, and then combine these to libs and apps as you want:<br><br>set(foolibSrcs src1/foo.c src1/foo2.c)<br><br>set(barlibSrcs src2/bar.c src1/bar2.c)
<br><br>add_library(foolib_static STATIC ${foolibSrcs})<br>add_library(foolib_dyn SHARED ${foolibSrcs})<br>add_library(barlib_dyn SHARED ${barlibSrcs})<br>add_library(all_in_one SHARED ${foolibSrcs} ${barlibSrcs})<br>add_executable(blub 
main.c ${foolibSrcs} ${barlibSrcs})</blockquote><div><br><br>The project is too big to have a single file like that. That would confuse things. Moreover different persons are working on different&nbsp; libraries. They will only give the library to me.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Bye<br>Alex<br><br>--<br>Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
<br>Ideal für Modem und ISDN: <a href="http://www.gmx.net/de/go/smartsurfer">http://www.gmx.net/de/go/smartsurfer</a><br></blockquote></div><br>