You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
# Find GLEW - OpenGL Extension Wrangler handling module for CMake
|
|
|
|
|
#
|
|
|
|
|
# This module defines:
|
|
|
|
|
#
|
|
|
|
|
# GLEW_FOUND - True if GLEW library is found
|
|
|
|
|
# GLEW_LIBRARY - GLEW dynamic library
|
|
|
|
|
# GLEW_INCLUDE_DIR - Include dir
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
if(GLEW_LIBRARY AND GLEW_INCLUDE_DIR)
|
|
|
|
|
|
|
|
|
|
set(GLEW_FOUND TRUE)
|
|
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
|
|
|
|
|
# Library
|
|
|
|
|
if(NOT WIN32)
|
|
|
|
|
find_library(GLEW_LIBRARY GLEW)
|
|
|
|
|
else()
|
|
|
|
|
find_library(GLEW_LIBRARY glew32)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
# Include dir
|
|
|
|
|
find_path(GLEW_INCLUDE_DIR
|
|
|
|
|
NAMES glew.h
|
|
|
|
|
PATH_SUFFIXES GL
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
find_package_handle_standard_args("GLEW" DEFAULT_MSG
|
|
|
|
|
GLEW_LIBRARY
|
|
|
|
|
GLEW_INCLUDE_DIR
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
endif()
|