2012-06-04 08:39:32 +02:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
2013-05-05 00:47:53 +02:00
|
|
|
project (arda-server C)
|
2010-08-08 07:17:11 +02:00
|
|
|
|
2012-06-04 03:47:43 +02:00
|
|
|
enable_testing()
|
2012-05-23 22:51:52 +02:00
|
|
|
|
2013-05-12 23:51:54 +02:00
|
|
|
INCLUDE (CheckIncludeFiles)
|
|
|
|
INCLUDE (CheckSymbolExists)
|
|
|
|
CHECK_INCLUDE_FILES (stdbool.h HAVE_STDBOOL_H)
|
|
|
|
CHECK_SYMBOL_EXISTS (_Bool "stdbool.h" HAVE__BOOL)
|
|
|
|
CHECK_INCLUDE_FILES (strings.h HAVE_STRINGS_H)
|
|
|
|
|
|
|
|
CONFIGURE_FILE (
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
|
|
|
|
${CMAKE_BINARY_DIR}/include/config.h)
|
|
|
|
INCLUDE_DIRECTORIES (${CMAKE_BINARY_DIR}/include)
|
|
|
|
|
2013-05-05 00:47:53 +02:00
|
|
|
find_package (Lua 5 REQUIRED)
|
|
|
|
find_package (ToLua REQUIRED)
|
|
|
|
find_package (LibXml2 REQUIRED)
|
|
|
|
find_package (Curses REQUIRED)
|
|
|
|
find_package (SQLite3 REQUIRED)
|
|
|
|
|
2013-12-26 22:56:59 +01:00
|
|
|
add_subdirectory (src server)
|
2012-06-07 21:44:25 +02:00
|
|
|
add_subdirectory (crypto)
|
|
|
|
add_subdirectory (quicklist)
|
|
|
|
add_subdirectory (iniparser)
|
|
|
|
add_subdirectory (cutest)
|
|
|
|
add_subdirectory (critbit)
|
2013-05-12 00:05:33 +02:00
|
|
|
add_subdirectory (core/src eressea)
|