summaryrefslogtreecommitdiffstats
path: root/Modules/FindGTK.cmake
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-18 12:15:04 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-18 12:15:04 (GMT)
commit5e319f5b9b1232130b8792b70efb8507ddc2f2f4 (patch)
tree3b18408b0cda96a01cb91d47701a15a95b7b7eb6 /Modules/FindGTK.cmake
parent56b69e5fcce39176e8c10e1eaccbf1c14aeafef0 (diff)
downloadCMake-5e319f5b9b1232130b8792b70efb8507ddc2f2f4.zip
CMake-5e319f5b9b1232130b8792b70efb8507ddc2f2f4.tar.gz
CMake-5e319f5b9b1232130b8792b70efb8507ddc2f2f4.tar.bz2
GL should not be a completely necessary thing for finding GTK. This will find gtk and GL but also just GTK
Diffstat (limited to 'Modules/FindGTK.cmake')
-rw-r--r--Modules/FindGTK.cmake25
1 files 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