2 CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0)
8 IF(SYSTEM_LUA) # use lua installed in the system
12 PKGCONFIG(${LUA_PKG} LUA_INCLUDE_DIRS LUA_LIBRARY_DIRS LUA_LINK_FLAGS LUA_CFLAGS)
14 PKGCONFIG(lua5.1 LUA_INCLUDE_DIRS LUA_LIBRARY_DIRS LUA_LINK_FLAGS LUA_CFLAGS)
15 IF(NOT LUA_LINK_FLAGS)
16 PKGCONFIG(lua LUA_INCLUDE_DIRS LUA_LIBRARY_DIRS LUA_LINK_FLAGS LUA_CFLAGS)
17 ENDIF(NOT LUA_LINK_FLAGS)
20 ADD_CUSTOM_TARGET(lua_library)
21 ELSE(SYSTEM_LUA) # use the embedded lua source
22 SET(LUA_BIN_DIR "${CMAKE_CURRENT_BINARY_DIR}/lua")
23 SET(LUA_INCLUDE_DIRS "${LUA_BIN_DIR}/include")
24 SET(LUA_LIBRARY_DIRS "${LUA_BIN_DIR}")
25 SET(LUA_LINK_FLAGS lua)
30 ADD_DEFINITIONS(-fexceptions)
31 find_package(KDE4 REQUIRED)
34 add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
37 # ADD_SUBDIRECTORY(tests EXCLUDE_FROM_ALL)