better to find mac opengl
This commit is contained in:
parent
00482fa8e6
commit
e9907e51a9
|
@ -13,20 +13,23 @@ IF (WIN32)
|
||||||
SET (OPENGL_LIBRARY opengl32 CACHE STRING "OpenGL library for win32")
|
SET (OPENGL_LIBRARY opengl32 CACHE STRING "OpenGL library for win32")
|
||||||
ENDIF(BORLAND)
|
ENDIF(BORLAND)
|
||||||
ELSE (WIN32)
|
ELSE (WIN32)
|
||||||
FIND_PATH(OPENGL_INCLUDE_PATH GL/gl.h
|
IF (APPLE)
|
||||||
/usr/include
|
SET(OPENGL_LIBRARY "-framework AppKit -framework OpenGL" CACHE STRING "OpenGL library for OSX")
|
||||||
/usr/local/include
|
ELSE (APPLE)
|
||||||
/usr/openwin/share/include
|
FIND_PATH(OPENGL_INCLUDE_PATH GL/gl.h
|
||||||
/opt/graphics/OpenGL/include
|
/usr/include
|
||||||
/usr/X11R6/include
|
/usr/local/include
|
||||||
)
|
/usr/openwin/share/include
|
||||||
|
/opt/graphics/OpenGL/include
|
||||||
FIND_LIBRARY(OPENGL_LIBRARY GL
|
/usr/X11R6/include
|
||||||
/usr/lib
|
)
|
||||||
/usr/local/lib
|
|
||||||
/opt/graphics/OpenGL/lib
|
FIND_LIBRARY(OPENGL_LIBRARY GL
|
||||||
/usr/openwin/lib
|
/usr/lib
|
||||||
/usr/X11R6/lib
|
/usr/local/lib
|
||||||
)
|
/opt/graphics/OpenGL/lib
|
||||||
|
/usr/openwin/lib
|
||||||
|
/usr/X11R6/lib
|
||||||
|
)
|
||||||
|
ENDIF (APPLE)
|
||||||
ENDIF (WIN32)
|
ENDIF (WIN32)
|
Loading…
Reference in New Issue