Agent::notifyMove now takes an Index instead of a move-position pair.
[tagua/yd.git] / CMakeLists.txt
blob0c17958d2ff8c2b5bf554b8869d3f297684d9f97
1 PROJECT(tagua)
2 CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0)
3 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
5 include(Tagua)
7 string(REGEX MATCH "debug" DEBUG_BUILD ${CMAKE_BUILD_TYPE})
9 # boost
10 FIND_PACKAGE(Boost)
12 # lua
13 IF(SYSTEM_LUA) # use lua installed in the system
14   INCLUDE(UsePkgConfig)
16   IF(LUA_PKG)
17     PKGCONFIG(${LUA_PKG} LUA_INCLUDE_DIRS LUA_LIBRARY_DIRS LUA_LINK_FLAGS LUA_CFLAGS)
18   ELSE(LUA_PKG)
19     PKGCONFIG(lua5.1 LUA_INCLUDE_DIRS LUA_LIBRARY_DIRS LUA_LINK_FLAGS LUA_CFLAGS)
20     IF(NOT LUA_LINK_FLAGS)
21       PKGCONFIG(lua LUA_INCLUDE_DIRS LUA_LIBRARY_DIRS LUA_LINK_FLAGS LUA_CFLAGS)
22     ENDIF(NOT LUA_LINK_FLAGS)
23   ENDIF(LUA_PKG)
25   ADD_CUSTOM_TARGET(lua_library)
26 ELSE(SYSTEM_LUA) # use the embedded lua source
27   SET(LUA_BIN_DIR "${CMAKE_CURRENT_BINARY_DIR}/lua")
28   SET(LUA_INCLUDE_DIRS "${LUA_BIN_DIR}/include")
29   SET(LUA_LIBRARY_DIRS "${LUA_BIN_DIR}")
30   SET(LUA_LINK_FLAGS lua)
32   ADD_SUBDIRECTORY(lua)
33 ENDIF(SYSTEM_LUA)
35 ADD_DEFINITIONS(-fexceptions)
36 find_package(KDE4 REQUIRED)
37 include(KDE4Defaults)
39 set(CMAKE_CXX_FLAGS_DEBUGFULL "${CMAKE_C_FLAGS_DEBUGFULL} -DTAGUA_DEBUG")
40 add_definitions(-DQT_NO_KEYWORDS ${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
42 add_subdirectory(src)
43 add_subdirectory(data)
45 enable_testing()
46 add_subdirectory(tests EXCLUDE_FROM_ALL)