From 5e319f5b9b1232130b8792b70efb8507ddc2f2f4 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 18 Sep 2002 08:15:04 -0400 Subject: GL should not be a completely necessary thing for finding GTK. This will find gtk and GL but also just GTK --- Modules/FindGTK.cmake | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/Modules/FindGTK.cmake b/Modules/FindGTK.cmake index 9e483a9..802fd24 100644 --- a/Modules/FindGTK.cmake +++ b/Modules/FindGTK.cmake @@ -109,10 +109,8 @@ IF (UNIX) IF(GTK_gtk_INCLUDE_PATH) IF(GTK_glibconfig_INCLUDE_PATH) IF(GTK_glib_INCLUDE_PATH) - IF(GTK_gtkgl_INCLUDE_PATH) IF(GTK_gtk_LIBRARY) IF(GTK_glib_LIBRARY) - IF(GTK_gtkgl_LIBRARY) # Assume that if gtk and glib were found, the other # supporting libraries have also been found. @@ -120,27 +118,36 @@ IF (UNIX) SET( GTK_FOUND "YES" ) SET( GTK_INCLUDE_DIR ${GTK_gtk_INCLUDE_PATH} ${GTK_glibconfig_INCLUDE_PATH} - ${GTK_glib_INCLUDE_PATH} - ${GTK_gtkgl_INCLUDE_PATH} ) - SET( GTK_LIBRARIES ${GTK_gtkgl_LIBRARY} - ${GTK_gtk_LIBRARY} + ${GTK_glib_INCLUDE_PATH} ) + SET( GTK_LIBRARIES ${GTK_gtk_LIBRARY} ${GTK_gdk_LIBRARY} ${GTK_gmodule_LIBRARY} + ${GTK_glib_LIBRARY} ) + + IF(GTK_gtkgl_INCLUDE_PATH) + IF(GTK_gtkgl_LIBRARY) + SET( GTK_GL_FOUND "YES" ) + SET( GTK_INCLUDE_DIR ${GTK_INCLUDE_DIR} + ${GTK_gtkgl_INCLUDE_PATH} ) + SET( GTK_LIBRARIES ${GTK_LIBRARIES} ${GTK_glib_LIBRARY} ) + MARK_AS_ADVANCED( + GTK_gtkgl_LIBRARY + GTK_gtkgl_INCLUDE_PATH + ) ENDIF(GTK_gtkgl_LIBRARY) + ENDIF(GTK_gtkgl_INCLUDE_PATH) + ENDIF(GTK_glib_LIBRARY) ENDIF(GTK_gtk_LIBRARY) - ENDIF(GTK_gtkgl_INCLUDE_PATH) ENDIF(GTK_glibconfig_INCLUDE_PATH) ENDIF(GTK_glib_INCLUDE_PATH) ENDIF(GTK_gtk_INCLUDE_PATH) MARK_AS_ADVANCED( - GTK_gtkgl_LIBRARY GTK_glib_LIBRARY GTK_gtk_LIBRARY - GTK_gtkgl_INCLUDE_PATH GTK_glibconfig_INCLUDE_PATH GTK_glib_INCLUDE_PATH GTK_gtk_INCLUDE_PATH -- cgit v0.12