Merge the switch to the system lua installation from master.
[fail.git] / FindFTGL.cmake
blob48bae9798363b45aeaa6cc3c4ef4a7970fbfda20
2 #   Fail game engine
3 #   Copyright 2007 Antoine Chavasse <a.chavasse@gmail.com>
4
5 #   This file is part of Fail.
7 #   Fail is free software; you can redistribute it and/or modify
8 #   it under the terms of the GNU General Public License version 3
9 #   as published by the Free Software Foundation.
11 #   Fail is distributed in the hope that it will be useful,
12 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 #   GNU General Public License for more details.
16 #   You should have received a copy of the GNU General Public License
17 #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 # Look for FTGL.
21 # Once done, it will set FTGL_FOUND to true, FTGL_LIBRARY and FTGL_INCLUDE_DIR.
23 set( FGTL_FOUND "NO" )
25 find_path( FTGL_INCLUDE_DIR
26         FTGL/ftgl.h
28         /usr/include
29         /usr/local/include
30         /opt/local/include
31         /sw/include
34 find_library( FTGL_LIBRARY
36         ftgl
37         
38         /usr/lib
39         /usr/local/lib
40         /opt/local/lib
41         /sw/lib
44 if( FTGL_INCLUDE_DIR AND FTGL_LIBRARY )
45         set( FTGL_FOUND "YES" )
46 endif( FTGL_INCLUDE_DIR AND FTGL_LIBRARY )
48 if( FTGL_FOUND )
49         if( NOT FTGL_FIND_QUIETLY )
50                 message( STATUS "Found FTGL: ${FTGL_LIBRARY}" )
51         endif( NOT FTGL_FIND_QUIETLY )
52 else( FTGL_FOUND )
53         if( FTGL_FIND_REQUIRED )
54                 message( FATAL_ERROR "Could not find FTGL" )
55         endif( FTGL_FIND_REQUIRED )
56 endif( FTGL_FOUND )