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

Michael Wild themiwi at gmail.com
Mon Jan 4 10:48:08 EST 2010


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)
> 
> -- 
> Philip Lowman
> <FindGTK2.cmake>_______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake

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.

HTH

Michael


More information about the CMake mailing list