mirror of https://github.com/mosra/magnum.git
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.
32 lines
643 B
32 lines
643 B
|
15 years ago
|
# 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()
|
||
|
|
|
||
|
|
# Static library
|
||
|
|
find_library(GLEW_LIBRARY GLEW)
|
||
|
|
|
||
|
|
# 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()
|