1# - try to find GPM library
2#
3# Cache Variables: (probably not for direct use in your scripts)
4#  GPM_INCLUDE_DIR
5#  GPM_LIBRARY
6#
7# Non-cache variables you might use in your CMakeLists.txt:
8#  GPM_FOUND
9#  GPM_INCLUDE_DIRS
10#  GPM_LIBRARIES
11#
12# Requires these CMake modules:
13#  FindPackageHandleStandardArgs (known included with CMake >=2.6.2)
14#
15# Original Author:
16# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
17# http://academic.cleardefinition.com
18# Iowa State University HCI Graduate Program/VRAC
19#
20# Copyright Iowa State University 2009-2010.
21# Distributed under the Boost Software License, Version 1.0.
22# (See accompanying file LICENSE_1_0.txt or copy at
23# http://www.boost.org/LICENSE_1_0.txt)
24
25find_library(GPM_LIBRARY
26	NAMES gpm)
27
28find_path(GPM_INCLUDE_DIR
29	NAMES gpm.h)
30
31include(FindPackageHandleStandardArgs)
32find_package_handle_standard_args(GPM
33	DEFAULT_MSG
34	GPM_LIBRARY
35	GPM_INCLUDE_DIR)
36
37if(GPM_FOUND)
38	set(GPM_LIBRARIES "${GPM_LIBRARY}")
39
40	set(GPM_INCLUDE_DIRS "${GPM_INCLUDE_DIR}")
41endif()
42
43mark_as_advanced(GPM_INCLUDE_DIR GPM_LIBRARY)
44