diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 000000000..e74bd8a92 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 2.4) +project (eressea-core) + +enable_testing() + +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/../../cmake/Modules/") + +add_subdirectory (../../dependencies "${CMAKE_CURRENT_BINARY_DIR}/dependencies") +add_subdirectory (util) diff --git a/src/util/CMakeLists.txt b/src/util/CMakeLists.txt new file mode 100644 index 000000000..8d2a38123 --- /dev/null +++ b/src/util/CMakeLists.txt @@ -0,0 +1,48 @@ +cmake_minimum_required (VERSION 2.4) +project (util) + +find_package (Lua51 REQUIRED) +find_package (LibXml2 REQUIRED) +#find_package (CuTest REQUIRED HINTS ${DEPENDENCIES_DIR}) +#find_package (QuickList REQUIRED) +#find_package (CritBit REQUIRED) + +include_directories (${LUA_INCLUDE_DIR} ${LIBXML2_INCLUDE_DIR}) +include_directories (.. + ${CRITBIT_INCLUDE_DIR} + ${QUICKLIST_INCLUDE_DIR} + ${CUTEST_INCLUDE_DIR} + ) + +add_library (util attrib.c + base36.c + base36_test.c + bsdstring.c + bsdstring_test.c + console.c + crmessage.c + dice.c + eventbus.c + event.c + filereader.c + functions.c + functions_test.c + goodies.c + language.c + listbox.c + lists.c + log.c + message.c + nrmessage.c + os.c + parser.c + rand.c + resolve.c + sql.c + strings.c + translation.c + umlaut.c + umlaut_test.c + unicode.c + xml.c +) diff --git a/src/util/bsdstring.h b/src/util/bsdstring.h index b917baafa..91b89465d 100644 --- a/src/util/bsdstring.h +++ b/src/util/bsdstring.h @@ -1,6 +1,7 @@ #ifndef UTIL_BSDSTRING_H #define UTIL_BSDSTRING_H +#include extern int wrptr(char **ptr, size_t * size, int bytes); #ifndef HAVE_STRLCPY