From 889ef0818990a7cf7e491a43efec58df6c39473b Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 30 May 2012 19:17:08 -0700 Subject: [PATCH] Moving some things around in the external directory. I am deliberately breaking the VS2010 projects with this. I am probably breaking the Eressea server. --- CMakeLists.txt | 21 +++++++++++++++++---- src/main.c | 2 +- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f89f840af..bdc94351d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,14 +21,26 @@ if (WIN32) else (WIN32) include_directories (/usr/include/lua5.1/ /usr/include/libxml2) endif (WIN32) -include_directories (../external ../shared/src) + +include_directories ( + ../external/bson + ../external/crypto + ../external/cutest + ../external/critbit + ../external/iniparser + ../external/pdcurses + ../shared/src +) set (LIB_SRCS - ../external/md5.c ../external/bson/bson.c ../external/bson/numbers.c - ../external/dlmalloc/malloc.c + ../external/critbit/critbit.c + ../external/crypto/md5.c + ../external/crypto/mt19937ar.c ../external/cutest/CuTest.c + ../external/dlmalloc/malloc.c + ../external/iniparser/iniparser.c ../shared/src/build/gamecode.c ../shared/src/build/kernel.c ../shared/src/build/lib.c @@ -40,8 +52,9 @@ set (LINK_LIBS tolua xml2 ncurses lua5.1 pthread) if (NEED_SQLITE) set(LIB_SRCS ${LIB_SRCS} - ../external/sqlite3.c + ../external/sqlite3/sqlite3.c ) + include_directories (../external/sqlite3) else (NEED_SQLITE) set (LINK_LIBS ${LINK_LIBS} sqlite3) endif (NEED_SQLITE) diff --git a/src/main.c b/src/main.c index be04d95d0..33d6ab58a 100644 --- a/src/main.c +++ b/src/main.c @@ -24,7 +24,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #include #include -#include +#include #include #include