<br><br>
<div class="gmail_quote">2009/1/29 Pau Garcia i Quiles <span dir="ltr">&lt;<a href="mailto:pgquiles@elpauer.org">pgquiles@elpauer.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="Wj3C7c">On Thu, Jan 29, 2009 at 1:12 PM, ankit jain &lt;<a href="mailto:ankitguddu@gmail.com">ankitguddu@gmail.com</a>&gt; wrote:<br>&gt; hi all,<br>&gt;<br>&gt; Problem:<br>&gt;<br>&gt; libA : A/foo.cc<br>&gt; libB : B/bar.cc<br>
&gt; and a 3rd library:<br>&gt; libC : A/foo.cc B/bar.cc<br>&gt; ?<br>&gt;<br>&gt; here i build the libraries for A and B but not able to build lib for C .<br>&gt; Guide me to do that. What should be the content of cmakelist file of C to<br>
&gt; create lib C<br>&gt;<br>&gt; here A and B are sub folders of C<br><br></div></div>Do you ean you are trying this but it&#39;s not working?<br><br>ADD_LIBRARY (libA A/foo.cc )<br>ADD_LIBRARY (libB B/bar.cc )<br>ADD_LIBRARY (libC libA libB )<br>
<br>That fails because CMake does not support convenience libraries:<br><a href="http://www.cmake.org/Wiki/CMake_FAQ#Does_CMake_support_.22convenience.22_libraries.3F" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ#Does_CMake_support_.22convenience.22_libraries.3F</a><br>
<br>You need to do this:<br><br>ADD_LIBRARY (libA A/foo.cc )<br>ADD_LIBRARY (libB B/bar.cc )<br>ADD_LIBRARY (libC A/foo.cc B/bar.cc )<br><br>I. e. list the source files for libC<br><br>Is that what you want to do?<br><font color="#888888"></font></blockquote>

<div>&nbsp;</div>
<div>Dont you think so it will be too hectic if there are 10 folders inside folder C and each folder has around 10 C files each. then listing all will be really cumbersome. </div>
<div>What should be the alternative for it.</div>
<div>&nbsp;</div>
<div>Ankit Jain</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><font color="#888888"><span id=""></span><br>--<br>Pau Garcia i Quiles<br><a href="http://www.elpauer.org/" target="_blank">http://www.elpauer.org</a><br>
(Due to my workload, I may need 10 days to answer)<br>_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</font></blockquote></div><br>