[CMake] [New Module] FindGTK2.cmake call for testing

Michael Wild themiwi at gmail.com
Tue Jan 5 02:06:23 EST 2010


On 5. Jan, 2010, at 5:23 , Philip Lowman wrote:

> On Mon, Jan 4, 2010 at 10:48 AM, Michael Wild <themiwi at gmail.com> wrote:
>> On 8. Jan, 2009, at 9:54 , Philip Lowman wrote:
>>> If you use GTK2 in any of your projects and have time, please test this
>>> CMake module and post any issues to this thread.  I intend to check it into
>>> CMake and support it.
>>> 
>>> Tested systems:
>>> ====
>>> Ubuntu 8.10
>>> Windows/MSVC (official gtkmm installer)
>> 
>> A year late to the party, but here my problems (using cmake-2.8-0):
>> 
>> 1. FindGTK2.cmake doesn't find the GLib-2/GTK+-2 headers installed by fink on Mac OS X. Adding /sw/include and /sw/lib to the PATHS list of the find_path call solves this for me.
>> 
>> 2. The second thing is, that on Mac you also need to explicitly link agains gobject, so adding the call
>> 
>> _GTK2_FIND_LIBRARY    (GTK2_GOBJECT_LIBRARY gobject false true)
>> 
>> just after the one for glib solves that problem for me.
> 
> Thanks for the email, I've checked in fixes for both of your issues
> into CMake CVS.  Could you try the FindGTK2.cmake module there (see
> link below) and report back?
> 
> http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindGTK2.cmake?root=CMake&view=log
> 
> Here's the newly created bug report if the changes don't work.
> http://public.kitware.com/Bug/view.php?id=10092
> 
> -- 
> Philip Lowman

Thanks Philip

works like a charm!

Michael


More information about the CMake mailing list