<br><br><div><span class="gmail_quote">On 12/4/06, <b class="gmail_sendername">Alexander Neundorf</b> <<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>> 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: "Kiran Pradeep" <<a href="mailto:kiran.happy@gmail.com">kiran.happy@gmail.com</a>><br><br>> Hi All,<br>><br>> I use cmake to in project with only 1 level of subdirectory.<br>> In each of those subdirectories i have a
CMakeLitst.txt which creates a<br>> static library out of its source files and put them in a single common<br>> directory.<br>> Finally the main CmakeLists.txt will use all those lindividual static<br>> libraries to create the application. Now there is a requirement like,
<br>> i want to combine all those individual static libraries to a single<br>> static or shared library. I know i have to run "ar x library.a" to get<br>> 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 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>