2 # Try to find OpenGL, once done this will define:
4 # OPENGL_INCLUDE_PATH = where the GL include directory can be found
5 # OPENGL_LIBRARY = the name of the OpenGL library to link with
6 # OPENGL_LIBRARY_PATH = where the GL library can be found (might be empty)
11 SET (OPENGL_LIBRARY import32 CACHE STRING "OpenGL library for win32")
13 SET (OPENGL_LIBRARY opengl32 CACHE STRING "OpenGL library for win32")
17 SET(OPENGL_LIBRARY "-framework Carbon -framework AGL -framework OpenGL" CACHE STRING "OpenGL library for OSX")
19 FIND_PATH(OPENGL_INCLUDE_PATH GL/gl.h
22 /usr/openwin/share/include
23 /opt/graphics/OpenGL/include
30 FIND_LIBRARY(OPENGL_LIBRARY GL
33 /opt/graphics/OpenGL/lib
41 GET_FILENAME_COMPONENT (OPENGL_LIBRARY_PATH ${OPENGL_LIBRARY} PATH)