[CMake] Convenience Libraries and Precompiled Headers

Alexander Neundorf a.neundorf-work at gmx.net
Wed May 24 02:54:10 EDT 2006


> -------- Original-Nachricht --------
> Datum: Tue, 23 May 2006 20:00:46 +0100
> Von: James Mansion <james at wgold.demon.co.uk>
> An: <cmake at cmake.org>
> Betreff: [CMake] Convenience Libraries and Precompiled Headers
> 
> Is it possible to convince CMake to build a set of convenience libraries
> and
> then a main library?
> 
> By convenience library, I mean a (static?) library that contains objects.
> Or possibly just a zip file of objects.
> 
> Where the target main library is static, the objects are compiled for
> static
> library use and then all the objects combined together.
> 
> Where the target main library is dynamic, the objects are compiled for
> dynamic linking and then a dynamic library is constructed.  (And in this
> case, the objects should have ideally part_IMPLEMENTATION and
> main_IMPLEMENTATION defined, so the auto exports work if we make lots of
> small DLLs or one big one).

Conv. libs are not (officially) supported by cmake. Just compile all source files into the resulting library. That's what we do for KDE.

Bye
Alex

-- 


Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer!
      Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer
    


More information about the CMake mailing list