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

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Nov 14 09:24:49 EST 2008


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 <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


More information about the CMake mailing list