ENH: add more paths for the HP
[cmake.git] / Modules / FindGLUT.cmake
blobd1c187ef1819dcee06ebf065b6171a297ca7c8dc
2 # Try to find GLUT, once done this will define:
4 # GLUT_INCLUDE_PATH = where the GLUT include directory can be found
5 # GLUT_LIBRARY      = the name of the GLUT library to link with
8 IF (WIN32)
9   IF (CYGWIN)
10     FIND_LIBRARY(GLUT_LIBRARY glut32
11       ${OPENGL_LIBRARY_PATH}
12       /usr/lib/w32api
13       /usr/lib 
14       /usr/local/lib 
15       /usr/X11R6/lib
16     )
17   ELSE (CYGWIN)
18     FIND_LIBRARY(GLUT_LIBRARY glut32
19       ${OPENGL_LIBRARY_PATH}
20     )
21   ENDIF (CYGWIN)
22 ELSE (WIN32)
23   IF (APPLE)
24     SET(GLUT_LIBRARY "-framework Glut" CACHE STRING "GLUT library for OSX")
25   ELSE (APPLE)
26     FIND_PATH(GLUT_INCLUDE_PATH GL/glut.h 
27       ${OPENGL_INCLUDE_PATH}
28       /usr/include 
29       /usr/include/GL
30       /usr/local/include 
31       /usr/openwin/share/include 
32       /opt/graphics/OpenGL/include 
33       /opt/graphics/OpenGL/contrib/libglut
34       /usr/X11R6/include 
35     )
36     MARK_AS_ADVANCED(
37       GLUT_INCLUDE_PATH
38     )
40     FIND_LIBRARY(GLUT_LIBRARY glut
41       ${OPENGL_LIBRARY_PATH}
42       /usr/lib 
43       /usr/local/lib 
44       /opt/graphics/OpenGL/lib 
45       /opt/graphics/OpenGL/contrib/libglut
46       /usr/openwin/lib 
47       /usr/X11R6/lib
48     )
50    ENDIF (APPLE)
51 ENDIF (WIN32)
53 MARK_AS_ADVANCED(
54   GLUT_LIBRARY