2012-06-04 08:39:32 +02:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
2012-06-04 03:55:52 +02:00
|
|
|
project (server C)
|
|
|
|
|
2013-02-24 02:27:50 +01:00
|
|
|
find_package (Lua51 REQUIRED)
|
2012-06-04 03:55:52 +02:00
|
|
|
find_package (LibXml2 REQUIRED)
|
2012-06-07 21:44:25 +02:00
|
|
|
find_package (SQLite3 REQUIRED)
|
2012-06-04 03:55:52 +02:00
|
|
|
find_package (ToLua REQUIRED)
|
|
|
|
find_package (Curses REQUIRED)
|
|
|
|
|
2012-06-07 21:44:25 +02:00
|
|
|
include_directories (${ERESSEA_INCLUDE_DIR})
|
2012-06-04 03:55:52 +02:00
|
|
|
include_directories (${CRITBIT_INCLUDE_DIR})
|
|
|
|
include_directories (${CRYPTO_INCLUDE_DIR})
|
|
|
|
include_directories (${QUICKLIST_INCLUDE_DIR})
|
|
|
|
include_directories (${CUTEST_INCLUDE_DIR})
|
|
|
|
include_directories (${LUA_INCLUDE_DIR})
|
|
|
|
include_directories (${LIBXML2_INCLUDE_DIR})
|
|
|
|
include_directories (${BSON_INCLUDE_DIR})
|
|
|
|
include_directories (${INIPARSER_INCLUDE_DIR})
|
|
|
|
|
|
|
|
add_executable(server main.c)
|
2012-06-07 21:44:25 +02:00
|
|
|
target_link_libraries(server
|
|
|
|
${ERESSEA_LIBRARY}
|
|
|
|
${BINDINGS_LIBRARY}
|
|
|
|
${TOLUA_LIBRARIES}
|
|
|
|
${SQLITE3_LIBRARIES}
|
|
|
|
)
|