2010-02-27 21:36:48 +01:00
|
|
|
cmake_minimum_required(VERSION 2.4)
|
2010-07-31 18:31:32 +02:00
|
|
|
project (eressea C)
|
2010-02-27 21:36:48 +01:00
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE)
|
|
|
|
else (WIN32)
|
2010-03-08 01:02:58 +01:00
|
|
|
include_directories (/usr/include/lua5.1/ /usr/include/libxml2)
|
2010-02-27 21:36:48 +01:00
|
|
|
set(CMAKE_C_FLAGS "-g -Wall -Werror -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wno-char-subscripts")
|
|
|
|
endif (WIN32)
|
2010-08-08 11:01:39 +02:00
|
|
|
include_directories (../external ../shared/src)
|
2010-02-27 21:36:48 +01:00
|
|
|
|
|
|
|
set (LIB_SRCS
|
2010-03-07 23:58:29 +01:00
|
|
|
../external/sqlite3.c
|
|
|
|
../external/md5.c
|
|
|
|
../external/bson/bson.c
|
|
|
|
../external/bson/numbers.c
|
|
|
|
../external/dlmalloc/malloc.c
|
2010-06-09 06:29:30 +02:00
|
|
|
../external/cutest/CuTest.c
|
2010-08-08 11:01:39 +02:00
|
|
|
../shared/src/build/gamecode.c
|
|
|
|
../shared/src/build/kernel.c
|
|
|
|
../shared/src/build/lib.c
|
|
|
|
../shared/src/build/util.c
|
2010-02-27 21:36:48 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
set (ERESSEA_SRCS
|
2010-03-07 23:58:29 +01:00
|
|
|
src/server.c
|
2010-02-27 21:36:48 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
add_executable (eressea ${LIB_SRCS} ${ERESSEA_SRCS})
|
|
|
|
if (WIN32)
|
|
|
|
else (WIN32)
|
|
|
|
target_link_libraries (eressea tolua xml2 ncurses lua5.1 pthread)
|
|
|
|
endif (WIN32)
|
2010-04-10 20:20:12 +02:00
|
|
|
|
|
|
|
add_definitions(-DUNITY_BUILD)
|