<P>Hi,</P>
<P>main.c is not necessary for diab compiler (microcontroller) (add_executable generates an .elf file thanks to my toolchain file).</P>
<P>I agree with you for&nbsp;executable and gcc but what about library ?</P>
<P>Seb</P>
<P><BR><BR><BR><BR><BR>&nbsp;</P>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #ff0000 2px solid">&gt; Message du 14/11/08 à 15h24<BR>&gt; De : "Mathieu Malaterre" <MATHIEU.MALATERRE@GMAIL.COM><BR>&gt; A : s.bedouet@voila.fr<BR>&gt; Copie à : cmake@cmake.org<BR>&gt; Objet : Re: [CMake] Create library and executable with libraries but no source files<BR>&gt; <BR>&gt; <BR>&gt; To build you executable you need at least a 'main' function. Did you<BR>&gt; place that file into one of your libs ?<BR>&gt; <BR>&gt; On Fri, Nov 14, 2008 at 3:05 PM, s.bedouet@voila.fr <S.BEDOUET@VOILA.FR>wrote:<BR>&gt; &gt; Hi,<BR>&gt; &gt;<BR>&gt; &gt; I would like to create a library (static or shared) and an executable with<BR>&gt; &gt; only libraries (static) but no sources files. It seems add_library and<BR>&gt; &gt; add_executable commands do not accept no source files. In my project, parent<BR>&gt; &gt; directory creates library or executable from libraries created in<BR>&gt; &gt; sub-directories.<BR>&gt; &gt;<BR>&gt; &gt; Is there any mean to do it ? (I use gcc and diab compilers)<BR>&gt; &gt;<BR>&gt; &gt; Thanks,<BR>&gt; &gt;<BR>&gt; &gt; Seb<BR>&gt; &gt;<BR>&gt; &gt; ________________________________<BR>&gt; &gt; 1 Go d'espace pour stocker et partager photos, vidéos, mp3 et autres<BR>&gt; &gt; documents sur Ma Clé Voila !<BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; CMake mailing list<BR>&gt; &gt; CMake@cmake.org<BR>&gt; &gt; http://www.cmake.org/mailman/listinfo/cmake<BR>&gt; &gt;<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; Mathieu<BR>&gt; <BR>&gt; </BLOCKQUOTE><br>

<br><hr>1 Go d’espace pour stocker et partager photos, vidéos, mp3 et autres documents sur <A href="http://r.voila.fr/r?ref=signature_mail_voila_macle_6&url=http://macle.voila.fr/">Ma Clé Voila !</A></DIV>