[CMake] how to link with a system library ?

Andreas Schneider mail at cynapses.org
Mon Sep 22 13:43:35 EDT 2008


On Sunday 21 September 2008 18:58:50 Hendrik Sattler wrote:
> > pointing to this CMake module
> > http://code.google.com/p/cmake-modules/source/browse/trunk/Modules/GTK2/F
> >in dGTK2.cmake
> >
> > I haven't tested it though.
>
> Looks not too good (it doesn't even use foreach for this endless list of
> doing the same thing again and again). It also needs support for component
> selection and missing finding the programs that come with gtk.
> It mixes several things although they are not even from the same source
> package upstream (glib / gtk / pango / ...).
> It also doesn't make sure that the *config.h matches the library found (if
> you ever have two versions installed).
>

Sounds like you're volunteering to rewrite the module ;)

I've written it some time ago for cmake 2.4. I'm not a GTK2 user so please 
feel free to develop a better module.

	-- andreas


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080922/cc76b4ba/attachment.pgp>


More information about the CMake mailing list