Merge topic 'FindGTK2-quartz-backend'

0e9bf6a FindGTK2: Add support for Quartz backend on MAC
This commit is contained in:
Brad King 2013-11-26 09:35:13 -05:00 committed by CMake Topic Stage
commit 170c50da38
1 changed files with 12 additions and 2 deletions

View File

@ -689,7 +689,12 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
_GTK2_FIND_INCLUDE_DIR(GDK gdk/gdk.h)
_GTK2_FIND_INCLUDE_DIR(GDKCONFIG gdkconfig.h)
if(UNIX)
if(APPLE)
_GTK2_FIND_LIBRARY (GDK gdk-quartz false true)
endif()
if(NOT GTK2_GDK_FOUND)
_GTK2_FIND_LIBRARY (GDK gdk-x11 false true)
endif()
else()
_GTK2_FIND_LIBRARY (GDK gdk-win32 false true)
endif()
@ -698,7 +703,12 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
_GTK2_FIND_INCLUDE_DIR(GTK gtk/gtk.h)
if(UNIX)
if(APPLE)
_GTK2_FIND_LIBRARY (GTK gtk-quartz false true)
endif()
if(NOT GTK2_GTK_FOUND)
_GTK2_FIND_LIBRARY (GTK gtk-x11 false true)
endif()
else()
_GTK2_FIND_LIBRARY (GTK gtk-win32 false true)
endif()