diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-17 12:28:07 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-17 12:28:07 (GMT) |
commit | e9907e51a950677621e87cdf2dbe493a7e32fe13 (patch) | |
tree | 5933f9115ac7c8f6d367f7df1306e661044d3eba /Modules/FindOpenGL.cmake | |
parent | 00482fa8e64aa08a13e886bc3a0ab2dfa2617b30 (diff) | |
download | CMake-e9907e51a950677621e87cdf2dbe493a7e32fe13.zip CMake-e9907e51a950677621e87cdf2dbe493a7e32fe13.tar.gz CMake-e9907e51a950677621e87cdf2dbe493a7e32fe13.tar.bz2 |
better to find mac opengl
Diffstat (limited to 'Modules/FindOpenGL.cmake')
-rw-r--r-- | Modules/FindOpenGL.cmake | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake index 4276512..f171b5d 100644 --- a/Modules/FindOpenGL.cmake +++ b/Modules/FindOpenGL.cmake @@ -13,20 +13,23 @@ IF (WIN32) SET (OPENGL_LIBRARY opengl32 CACHE STRING "OpenGL library for win32") ENDIF(BORLAND) ELSE (WIN32) - FIND_PATH(OPENGL_INCLUDE_PATH GL/gl.h - /usr/include - /usr/local/include - /usr/openwin/share/include - /opt/graphics/OpenGL/include - /usr/X11R6/include - ) - - FIND_LIBRARY(OPENGL_LIBRARY GL - /usr/lib - /usr/local/lib - /opt/graphics/OpenGL/lib - /usr/openwin/lib - /usr/X11R6/lib - ) - + IF (APPLE) + SET(OPENGL_LIBRARY "-framework AppKit -framework OpenGL" CACHE STRING "OpenGL library for OSX") + ELSE (APPLE) + FIND_PATH(OPENGL_INCLUDE_PATH GL/gl.h + /usr/include + /usr/local/include + /usr/openwin/share/include + /opt/graphics/OpenGL/include + /usr/X11R6/include + ) + + FIND_LIBRARY(OPENGL_LIBRARY GL + /usr/lib + /usr/local/lib + /opt/graphics/OpenGL/lib + /usr/openwin/lib + /usr/X11R6/lib + ) + ENDIF (APPLE) ENDIF (WIN32)
\ No newline at end of file |