summaryrefslogtreecommitdiff
path: root/Modules/FindGLUT.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/FindGLUT.cmake')
-rw-r--r--Modules/FindGLUT.cmake13
1 files changed, 10 insertions, 3 deletions
diff --git a/Modules/FindGLUT.cmake b/Modules/FindGLUT.cmake
index da9c0c1953..658d90fabe 100644
--- a/Modules/FindGLUT.cmake
+++ b/Modules/FindGLUT.cmake
@@ -1,21 +1,27 @@
#
-# try to find GLU on UNIX systems once done this will define
+# Try to find GLUT, once done this will define:
#
# GLUT_INCLUDE_PATH = where the GLUT include directory can be found
-# GLUT_LIB_PATH = where the GLUT library can be found
# GLUT_LIBRARY = the name of the GLUT library to link with
#
IF (WIN32)
IF (CYGWIN)
FIND_LIBRARY(GLUT_LIBRARY glut32
+ ${OPENGL_LIBRARY_PATH}
/usr/lib/w32api
+ /usr/lib
+ /usr/local/lib
+ /usr/X11R6/lib
)
ELSE (CYGWIN)
- FIND_LIBRARY(GLUT_LIBRARY glut32)
+ FIND_LIBRARY(GLUT_LIBRARY glut32
+ ${OPENGL_LIBRARY_PATH}
+ )
ENDIF (CYGWIN)
ELSE (WIN32)
FIND_PATH(GLUT_INCLUDE_PATH GL/glut.h
+ ${OPENGL_INCLUDE_PATH}
/usr/include
/usr/include/GL
/usr/local/include
@@ -28,6 +34,7 @@ ELSE (WIN32)
)
FIND_LIBRARY(GLUT_LIBRARY glut
+ ${OPENGL_LIBRARY_PATH}
/usr/lib
/usr/local/lib
/opt/graphics/OpenGL/lib