[Cmake-commits] CMake branch, next, updated. v2.8.9-463-g1945d61
Benjamin Eikel
cmake at eikel.org
Tue Sep 11 15:31:05 EDT 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, next has been updated
via 1945d61f7a08f925921af3ebd957b0303f6eb342 (commit)
via fbda7bb9f23bfbd7efdfc0ef64504f4c2d280267 (commit)
from 892af1240ca45aafe46874dfe7b698249ba6079e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1945d61f7a08f925921af3ebd957b0303f6eb342
commit 1945d61f7a08f925921af3ebd957b0303f6eb342
Merge: 892af12 fbda7bb
Author: Benjamin Eikel <cmake at eikel.org>
AuthorDate: Tue Sep 11 15:31:00 2012 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Tue Sep 11 15:31:00 2012 -0400
Merge topic 'NewFindGLEWModule' into next
fbda7bb Initial version of find module
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=fbda7bb9f23bfbd7efdfc0ef64504f4c2d280267
commit fbda7bb9f23bfbd7efdfc0ef64504f4c2d280267
Author: Benjamin Eikel <cmake at eikel.org>
AuthorDate: Sat Sep 1 10:19:12 2012 +0200
Commit: Benjamin Eikel <cmake at eikel.org>
CommitDate: Sat Sep 1 10:19:12 2012 +0200
Initial version of find module
diff --git a/Modules/FindGLEW.cmake b/Modules/FindGLEW.cmake
new file mode 100644
index 0000000..37dff03
--- /dev/null
+++ b/Modules/FindGLEW.cmake
@@ -0,0 +1,30 @@
+# - Find the OpenGL Extension Wrangler Library (GLEW)
+# This module defines the following variables:
+# GLEW_INCLUDE_DIRS - include directories for GLEW
+# GLEW_LIBRARIES - libraries to link against GLEW
+# GLEW_FOUND - true if GLEW has been found and can be used
+
+#=============================================================================
+# Copyright 2012 Benjamin Eikel
+#
+# Distributed under the OSI-approved BSD License (the "License");
+# see accompanying file Copyright.txt for details.
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the License for more information.
+#=============================================================================
+# (To distribute this file outside of CMake, substitute the full
+# License text for the above reference.)
+
+find_path(GLEW_INCLUDE_DIR GL/glew.h)
+find_library(GLEW_LIBRARY NAMES GLEW glew32 glew glew32s PATH_SUFFIXES lib64)
+
+set(GLEW_INCLUDE_DIRS ${GLEW_INCLUDE_DIR})
+set(GLEW_LIBRARIES ${GLEW_LIBRARY})
+
+include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
+find_package_handle_standard_args(GLEW
+ REQUIRED_VARS GLEW_INCLUDE_DIR GLEW_LIBRARY)
+
+mark_as_advanced(GLEW_INCLUDE_DIR GLEW_LIBRARY)
-----------------------------------------------------------------------
Summary of changes:
Modules/FindGLEW.cmake | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
create mode 100644 Modules/FindGLEW.cmake
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list