Commit f8c6f9bf authored by dimitri's avatar dimitri
Browse files

Using standard args in FindGLEW.

parent b194494a
find_path(GLEW_INCLUDE_DIR NAMES GL PATHS include) find_path(
find_library(GLEW_LIBRARY NAMES GLEW GLEWd glew32 glew32s glew32d glew32sd PATHS lib ) GLEW_INCLUDE_DIR
NAMES
GL
PATHS
include)
MESSAGE("** GLEW FOUND BY CONAN") find_library(
SET(GLEW_FOUND TRUE) GLEW_LIBRARY
MESSAGE("** FOUND GLEW: ${GLEW_LIBRARY}") NAMES
MESSAGE("** FOUND GLEW INCLUDE: ${GLEW_INCLUDE_DIR}") GLEW GLEWd glew32 glew32s glew32d glew32sd
PATHS
lib)
set(GLEW_INCLUDE_DIRS ${GLEW_INCLUDE_DIR}) include(FindPackageHandleStandardArgs)
set(GLEW_LIBRARIES ${GLEW_LIBRARY})
mark_as_advanced(GLEW_LIBRARY GLEW_INCLUDE_DIR) find_package_handle_standard_args(GLEW REQUIRED_VARS GLEW_LIBRARY GLEW_INCLUDE_DIR)
set(GLEW_MAJOR_VERSION "2")
set(GLEW_MINOR_VERSION "0")
set(GLEW_PATCH_VERSION "0")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment