2011-12-29 19:18:12 +01:00
|
|
|
# Try to find the GLEW librairy
|
|
|
|
# GLEW_FOUND - system has GLEW
|
|
|
|
# GLEW_INCLUDE_DIR - the GLEW include directory
|
|
|
|
# GLEW_LIBRARY - the GLEW library
|
|
|
|
|
|
|
|
FIND_PATH(GLEW_INCLUDE_DIR NAMES GL/glew.h)
|
2012-06-22 21:04:03 +02:00
|
|
|
SET(_GLEW_STATIC_LIBS libGLEW.a libglew32.a)
|
|
|
|
SET(_GLEW_SHARED_LIBS GLEW.dll glew32.dll GLEW glew32)
|
|
|
|
IF(USE_STATIC_LIBS)
|
|
|
|
FIND_LIBRARY(GLEW_LIBRARY NAMES ${_GLEW_STATIC_LIBS} ${_GLEW_SHARED_LIBS})
|
|
|
|
ELSE()
|
|
|
|
FIND_LIBRARY(GLEW_LIBRARY NAMES ${_GLEW_SHARED_LIBS} ${_GLEW_STATIC_LIBS})
|
|
|
|
ENDIF()
|
2011-12-29 19:18:12 +01:00
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLEW DEFAULT_MSG GLEW_LIBRARY GLEW_INCLUDE_DIR)
|
|
|
|
MARK_AS_ADVANCED(GLEW_LIBRARY GLEW_INCLUDE_DIR)
|