1############################################################################
2# FindGLEW.txt
3# Copyright (C) 2014  Belledonne Communications, Grenoble France
4#
5############################################################################
6#
7# This program is free software; you can redistribute it and/or
8# modify it under the terms of the GNU General Public License
9# as published by the Free Software Foundation; either version 2
10# of the License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20#
21############################################################################
22#
23# - Find the gsm include file and library
24#
25#  GLEW_FOUND - system has glew
26#  GLEW_INCLUDE_DIRS - the glew include directory
27#  GLEW_LIBRARIES - The libraries needed to use glew
28
29find_path(GLEW_INCLUDE_DIRS
30	NAMES GL/glew.h
31	PATH_SUFFIXES include
32)
33
34if(GLEW_INCLUDE_DIRS)
35        set(HAVE_GL_GLEW_H 1)
36endif()
37
38find_library(GLEW_LIBRARIES
39	NAMES GLEW
40	PATH_SUFFIXES bin lib
41)
42
43include(FindPackageHandleStandardArgs)
44
45find_package_handle_standard_args(Glew
46	DEFAULT_MSG
47	GLEW_INCLUDE_DIRS GLEW_LIBRARIES HAVE_GL_GLEW_H
48)
49
50mark_as_advanced(GLEW_INCLUDE_DIRS GLEW_LIBRARIES HAVE_GL_GLEW_H)
51