-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from TakesxiSximada/sximada-patch-11
fix GLEW library build configuration
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# FindGLEW.cmake | ||
# Search for GLEW library and include directories | ||
|
||
find_path(GLEW_INCLUDE_DIR GL/glew.h) | ||
find_library(GLEW_LIBRARY NAMES GLEW GLEW32) | ||
|
||
if (GLEW_INCLUDE_DIR AND GLEW_LIBRARY) | ||
set(GLEW_FOUND TRUE) | ||
else() | ||
set(GLEW_FOUND FALSE) | ||
endif() | ||
|
||
if (GLEW_FOUND) | ||
if (NOT GLEW_FIND_QUIETLY) | ||
message(STATUS "Found GLEW: ${GLEW_LIBRARY}") | ||
endif () | ||
else() | ||
if (GLEW_FIND_REQUIRED) | ||
message(FATAL_ERROR "Could NOT find GLEW") | ||
endif () | ||
endif() | ||
|
||
mark_as_advanced(GLEW_INCLUDE_DIR GLEW_LIBRARY) |