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/>.
19 cmake_minimum_required( VERSION 2.6 )
20 project( Urggr ) #C CXX )
22 set( CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake )
23 set( LUA_PACKAGE_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/share/urggr/lua )
24 set( LUA_PACKAGE_PATH ";${LUA_PACKAGE_INSTALL_PATH}/?_package.lua" )
25 #set( LUA_MODULES_CDIR ${CMAKE_INSTALL_PREFIX}/lib/lua/5.1 )
26 #set( LUA_MODULES_LDIR ${CMAKE_INSTALL_PREFIX}/share/lua/5.1 )
27 #${CMAKE_INSTALL_PREFIX}/share/fail/lua-modules )
29 find_package( Lua51 REQUIRED )
30 find_package( Fail REQUIRED )
32 #add_definitions( -DINSTALL_PREFIX='${CMAKE_INSTALL_PREFIX}' )
33 #add_definitions( -DLUA_MODULES_PATH='${LUA_MODULES_PATH}' )
35 #if( CMAKE_COMPILER_IS_GNUCXX )
36 # add_definitions( -fvisibility=hidden -std=c++0x -pipe -fPIC -pedantic -Wall -Wno-unused -Wno-switch -Wno-long-long )
37 #endif( CMAKE_COMPILER_IS_GNUCXX )
40 # set( FAIL_EXPORT "__attribute (( visibility (\"default\") ))" )
41 # set( FAIL_IMPORT "__attribute (( visibility (\"default\") ))" )
46 # This should work both with gcc and vc++ (although there seem to be no point in
47 # ever building this with vc++, assuming that vc++ one day implements c++0x)
48 # set( FAIL_EXPORT "__declspec(dllexport)" )
49 # set( FAIL_IMPORT "__declspec(dllimport)" )
55 # ${PROJECT_SOURCE_DIR}
56 # ${PROJECT_SOURCE_DIR}/src
57 # ${PROJECT_BINARY_DIR}/include