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