Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-07-28 21:53:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-07-28 21:53:15 +0400
commitdfccfeb447b4d59f2326a0af9ca5d550e2eb38fc (patch)
tree2ecd6f21321d3caba8447fb11e9407003a4aad4b /build_files
parent02b6ba88748023cd28fdf9e50d6448ebb8cc7324 (diff)
CMake: add glew-mx library
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/Modules/FindGLEW.cmake16
1 files changed, 13 insertions, 3 deletions
diff --git a/build_files/cmake/Modules/FindGLEW.cmake b/build_files/cmake/Modules/FindGLEW.cmake
index 551a7aa5934..8589e143ada 100644
--- a/build_files/cmake/Modules/FindGLEW.cmake
+++ b/build_files/cmake/Modules/FindGLEW.cmake
@@ -3,13 +3,13 @@
# This module defines
# GLEW_INCLUDE_DIRS, where to find glew.h, Set when
# GLEW_INCLUDE_DIR is found.
-# GLEW_LIBRARIES, libraries to link against to use Glew.
# GLEW_ROOT_DIR, The base directory to search for Glew.
# This can also be an environment variable.
# GLEW_FOUND, If false, do not try to use Glew.
#
-# also defined, but not for general use are
+# also defined,
# GLEW_LIBRARY, where to find the Glew library.
+# GLEW_MX_LIBRARY, where to find the GlewMX library.
#=============================================================================
# Copyright 2014 Blender Foundation.
@@ -50,6 +50,16 @@ FIND_LIBRARY(GLEW_LIBRARY
lib64 lib
)
+
+FIND_LIBRARY(GLEW_MX_LIBRARY
+ NAMES
+ GLEWmx
+ HINTS
+ ${_glew_SEARCH_DIRS}
+ PATH_SUFFIXES
+ lib64 lib
+ )
+
# handle the QUIETLY and REQUIRED arguments and set GLEW_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
@@ -57,11 +67,11 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(Glew DEFAULT_MSG
GLEW_LIBRARY GLEW_INCLUDE_DIR)
IF(GLEW_FOUND)
- SET(GLEW_LIBRARIES ${GLEW_LIBRARY})
SET(GLEW_INCLUDE_DIRS ${GLEW_INCLUDE_DIR})
ENDIF(GLEW_FOUND)
MARK_AS_ADVANCED(
GLEW_INCLUDE_DIR
GLEW_LIBRARY
+ GLEW_MX_LIBRARY
)