[CMake] Create library and executable with libraries but no source files

s.bedouet at voila.fr s.bedouet at voila.fr
Fri Nov 14 09:54:00 EST 2008


Hi,
main.c is not necessary for diab compiler (microcontroller) (add_executable generates an .elf file thanks to my toolchain file).
I agree with you for executable and gcc but what about library ?
Seb






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

____________________________________________________

1 Go d’espace pour stocker et partager photos, vidéos, mp3 et autres documents sur Ma Clé Voila ! http://macle.voila.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081114/299b9a3f/attachment.htm>


More information about the CMake mailing list