2 CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0)
10 IF(SYSTEM_LUA) # use lua installed in the system
14 PKGCONFIG(${LUA_PKG} LUA_INCLUDE_DIRS LUA_LIBRARY_DIRS LUA_LINK_FLAGS LUA_CFLAGS)
16 PKGCONFIG(lua5.1 LUA_INCLUDE_DIRS LUA_LIBRARY_DIRS LUA_LINK_FLAGS LUA_CFLAGS)
17 IF(NOT LUA_LINK_FLAGS)
18 PKGCONFIG(lua LUA_INCLUDE_DIRS LUA_LIBRARY_DIRS LUA_LINK_FLAGS LUA_CFLAGS)
19 ENDIF(NOT LUA_LINK_FLAGS)
22 ADD_CUSTOM_TARGET(lua_library)
23 ELSE(SYSTEM_LUA) # use the embedded lua source
24 SET(LUA_BIN_DIR "${CMAKE_CURRENT_BINARY_DIR}/lua")
25 SET(LUA_INCLUDE_DIRS "${LUA_BIN_DIR}/include")
26 SET(LUA_LIBRARY_DIRS "${LUA_BIN_DIR}")
27 SET(LUA_LINK_FLAGS lua)
32 ADD_DEFINITIONS(-fexceptions)
33 find_package(KDE4 REQUIRED)
36 set(CMAKE_CXX_FLAGS_DEBUGFULL "${CMAKE_C_FLAGS_DEBUGFULL} -DTAGUA_DEBUG")
37 add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
40 add_subdirectory(data)
41 # add_subdirectory(tests EXCLUDE_FROM_ALL)