Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Maik Froechtenicht
glew
Commits
f8c6f9bf
Commit
f8c6f9bf
authored
Jul 26, 2017
by
dimitri
Browse files
Using standard args in FindGLEW.
parent
b194494a
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/conan/FindGLEW.cmake
View file @
f8c6f9bf
find_path
(
GLEW_INCLUDE_DIR NAMES GL PATHS include
)
find_library
(
GLEW_LIBRARY NAMES GLEW GLEWd glew32 glew32s glew32d glew32sd PATHS lib
)
find_path
(
GLEW_INCLUDE_DIR
NAMES
GL
PATHS
include
)
MESSAGE
(
"** GLEW FOUND BY CONAN"
)
SET
(
GLEW_FOUND TRUE
)
MESSAGE
(
"** FOUND GLEW:
${
GLEW_LIBRARY
}
"
)
MESSAGE
(
"** FOUND GLEW INCLUDE:
${
GLEW_INCLUDE_DIR
}
"
)
find_library
(
GLEW_LIBRARY
NAMES
GLEW GLEWd glew32 glew32s glew32d glew32sd
PATHS
lib
)
set
(
GLEW_INCLUDE_DIRS
${
GLEW_INCLUDE_DIR
}
)
set
(
GLEW_LIBRARIES
${
GLEW_LIBRARY
}
)
include
(
FindPackageHandleStandardArgs
)
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"
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment