2 CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0)
3 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
7 string(REGEX MATCH "debug" DEBUG_BUILD ${CMAKE_BUILD_TYPE})
13 IF(SYSTEM_LUA) # use lua installed in the system
17 PKGCONFIG(${LUA_PKG} LUA_INCLUDE_DIRS LUA_LIBRARY_DIRS LUA_LINK_FLAGS LUA_CFLAGS)
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)
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)
35 ADD_DEFINITIONS(-fexceptions)
36 find_package(KDE4 REQUIRED)
39 set(CMAKE_CXX_FLAGS_DEBUGFULL "${CMAKE_C_FLAGS_DEBUGFULL} -DTAGUA_DEBUG")
40 add_definitions(-DQT_NO_KEYWORDS ${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
43 add_subdirectory(data)
46 add_subdirectory(tests EXCLUDE_FROM_ALL)