[CMake] Can I make both(STATIC & SHARED) type libraries?
Alexander Neundorf
a.neundorf-work at gmx.net
Fri Mar 2 05:17:15 EST 2007
Von: "Brandon J. Van Every" <bvanevery at gmail.com>
> Jong-young Park wrote:
> > I need both lib.a & lib.so as project result.
> > But ADD_LIBRARY command may support Only 1 type, I think.
> >
> > Not any other method?
> >
> > Thanks for reading.
> ]
> You will have to do ADD_LIBRARY twice, once for the shared, once for the
> static. You'll have to give them different target names. They can have
> the same rootname, i.e. libfoo.a and libfoo.dll.a are possible. But
> CMake must have a unique name for each target. I typically choose
> target names like libfoo and libfoo-static.
Is this already in the FAQ ?
If not, can you please add it there ?
Thanks
Alex
--
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out
More information about the CMake
mailing list