2 # Find the native GLEW includes and library
4 # GLEW_INCLUDE_DIR, where to find glew.h, etc.
5 # GLEW_LIBRARIES, the libraries needed to use GLEW.
6 # GLEW_FOUND, If false, do not try to use GLEW.
7 # also defined, but not for general use are
8 # GLEW_LIBRARY, where to find the GLEW library.
10 FIND_PATH(GLEW_INCLUDE_DIR GL/glew.h)
12 SET(GLEW_NAMES_RELEASE ${GLEW_NAMES_RELEASE} glew)
13 FIND_LIBRARY(GLEW_LIBRARY_RELEASE NAMES ${GLEW_NAMES_RELEASE} )
15 SET(GLEW_NAMES_DEBUG ${GLEW_NAMES_DEBUG} glewd)
16 FIND_LIBRARY(GLEW_LIBRARY_DEBUG NAMES ${GLEW_NAMES_DEBUG} )
18 IF(GLEW_LIBRARY_DEBUG)
19 SET(GLEW_LIBRARIES_FOUND TRUE)
20 MARK_AS_ADVANCED(GLEW_LIBRARY_DEBUG)
21 ENDIF(GLEW_LIBRARY_DEBUG)
23 IF(GLEW_LIBRARY_RELEASE)
24 SET(GLEW_LIBRARIES_FOUND TRUE)
25 MARK_AS_ADVANCED(GLEW_LIBRARY_RELEASE)
26 ENDIF(GLEW_LIBRARY_RELEASE)
28 # handle the QUIETLY and REQUIRED arguments and set GLEW_FOUND to TRUE if
29 # all listed variables are TRUE
30 INCLUDE(FindPackageHandleStandardArgs)
31 FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLEW DEFAULT_MSG
32 GLEW_LIBRARIES_FOUND GLEW_INCLUDE_DIR)
35 # SET(GLEW_LIBRARIES ${GLEW_LIBRARY})
38 # Deprecated declarations.
39 #SET (NATIVE_GLEW_INCLUDE_PATH ${GLEW_INCLUDE_DIR} )
41 # GET_FILENAME_COMPONENT (NATIVE_GLEW_LIB_PATH ${GLEW_LIBRARY} PATH)
44 MARK_AS_ADVANCED(GLEW_LIBRARIES_FOUND GLEW_INCLUDE_DIR )