Fixed bug that was clamping integer options to 99 in the option widget.
[tagua/yd.git] / CMakeLists.txt
blob6a96f770f83ae133a29e1e10353c3b34f148cebc
1 PROJECT(tagua)
2 CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0)
4 include(tagua.cmake)
6 # boost
7 FIND_PACKAGE(Boost)
9 # lua
10 IF(SYSTEM_LUA) # use lua installed in the system
11   INCLUDE(UsePkgConfig)
13   IF(LUA_PKG)
14     PKGCONFIG(${LUA_PKG} LUA_INCLUDE_DIRS LUA_LIBRARY_DIRS LUA_LINK_FLAGS LUA_CFLAGS)
15   ELSE(LUA_PKG)
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)
20   ENDIF(LUA_PKG)
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)
29   ADD_SUBDIRECTORY(lua)
30 ENDIF(SYSTEM_LUA)
32 ADD_DEFINITIONS(-fexceptions)
33 find_package(KDE4 REQUIRED)
34 include(KDE4Defaults)
36 set(CMAKE_CXX_FLAGS_DEBUGFULL "${CMAKE_C_FLAGS_DEBUGFULL} -DTAGUA_DEBUG")
37 add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
39 add_subdirectory(src)
40 add_subdirectory(data)
41 # add_subdirectory(tests EXCLUDE_FROM_ALL)