2 # Urggr - An horizontal scrolling shoot'em up.
3 # Copyright 2008 Antoine Chavasse <a.chavasse@gmail.com>
5 # This file is part of Urggr.
7 # Urggr 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 # Urggr 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 # For now we only look for the lua modules. In the future I need to make
21 # fail install its headers and libraries and detect those too, but it
22 # won't be needed until I need to implement C++ classes in Urggr.
23 set( FAIL_FOUND "NO" )
25 find_path( FAIL_LUA_MODULES_DIR
29 /usr/local/lib/lua/5.1
32 if( FAIL_LUA_MODULES_DIR )
33 set( FAIL_FOUND "YES" )
34 endif( FAIL_LUA_MODULES_DIR )
37 if( NOT FAIL_FIND_QUIETLY )
38 message( STATUS "Found Fail: ${FAIL_LUA_MODULES_DIR}" )
39 endif( NOT FAIL_FIND_QUIETLY )
41 if( FAIL_FIND_REQUIRED )
42 message( FATAL_ERROR "Could not find Fail" )
43 endif( FAIL_FIND_REQUIRED )