cmake configuration for gamecode

This commit is contained in:
Enno Rehling 2012-06-03 13:39:42 -07:00
parent 5cba331ad3
commit a928c6b45c
13 changed files with 50 additions and 18 deletions

View File

@ -8,3 +8,4 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/../../cmake/Modu
add_subdirectory (../../dependencies "${CMAKE_CURRENT_BINARY_DIR}/dependencies") add_subdirectory (../../dependencies "${CMAKE_CURRENT_BINARY_DIR}/dependencies")
add_subdirectory (util) add_subdirectory (util)
add_subdirectory (kernel) add_subdirectory (kernel)
add_subdirectory (gamecode)

View File

@ -0,0 +1,31 @@
cmake_minimum_required (VERSION 2.4)
project (gamecode)
include_directories (..)
include_directories (${LIBXML2_INCLUDE_DIR})
#include_directories (${CRITBIT_INCLUDE_DIR})
include_directories (${QUICKLIST_INCLUDE_DIR})
include_directories (${CUTEST_INCLUDE_DIR})
#include_directories (${INIPARSER_INCLUDE_DIR})
#include_directories (${CRYPTO_INCLUDE_DIR})
add_library (gamecode
# archetype.c
creation.c
creport.c
economy.c
economy_test.c
give.c
items.c
laws.c
laws_test.c
market.c
market_test.c
monster.c
randenc.c
report.c
spy.c
study.c
summary.c
xmlreport.c
)

View File

@ -35,6 +35,7 @@ without prior permission by the authors of Eressea.
#include <kernel/alliance.h> #include <kernel/alliance.h>
#include <kernel/connection.h> #include <kernel/connection.h>
#include <kernel/building.h> #include <kernel/building.h>
#include <kernel/curse.h>
#include <kernel/faction.h> #include <kernel/faction.h>
#include <kernel/group.h> #include <kernel/group.h>
#include <kernel/item.h> #include <kernel/item.h>

View File

@ -20,6 +20,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <platform.h> #include <platform.h>
#include <kernel/config.h> #include <kernel/config.h>
#include <kernel/types.h>
#include "economy.h" #include "economy.h"
/* gamecode includes */ /* gamecode includes */
@ -33,6 +34,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <kernel/alchemy.h> #include <kernel/alchemy.h>
#include <kernel/building.h> #include <kernel/building.h>
#include <kernel/calendar.h> #include <kernel/calendar.h>
#include <kernel/curse.h>
#include <kernel/equipment.h> #include <kernel/equipment.h>
#include <kernel/faction.h> #include <kernel/faction.h>
#include <kernel/item.h> #include <kernel/item.h>

View File

@ -1,4 +1,5 @@
#include "platform.h" #include <platform.h>
#include <kernel/types.h>
#include "economy.h" #include "economy.h"
#include <kernel/unit.h> #include <kernel/unit.h>

View File

@ -17,6 +17,7 @@
#include "economy.h" #include "economy.h"
/* kernel includes */ /* kernel includes */
#include <kernel/curse.h>
#include <kernel/faction.h> #include <kernel/faction.h>
#include <kernel/item.h> #include <kernel/item.h>
#include <kernel/magic.h> #include <kernel/magic.h>

View File

@ -39,6 +39,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <kernel/alliance.h> #include <kernel/alliance.h>
#include <kernel/battle.h> #include <kernel/battle.h>
#include <kernel/connection.h> #include <kernel/connection.h>
#include <kernel/curse.h>
#include <kernel/building.h> #include <kernel/building.h>
#include <kernel/calendar.h> #include <kernel/calendar.h>
#include <kernel/faction.h> #include <kernel/faction.h>

View File

@ -1,4 +1,5 @@
#include "platform.h" #include <platform.h>
#include <kernel/types.h>
#include "market.h" #include "market.h"
#include "tests.h" #include "tests.h"

View File

@ -42,6 +42,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <kernel/build.h> #include <kernel/build.h>
#include <kernel/building.h> #include <kernel/building.h>
#include <kernel/calendar.h> #include <kernel/calendar.h>
#include <kernel/curse.h>
#include <kernel/faction.h> #include <kernel/faction.h>
#include <kernel/group.h> #include <kernel/group.h>
#include <kernel/item.h> #include <kernel/item.h>

View File

@ -25,6 +25,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <kernel/alchemy.h> #include <kernel/alchemy.h>
#include <kernel/building.h> #include <kernel/building.h>
#include <kernel/curse.h>
#include <kernel/faction.h> #include <kernel/faction.h>
#include <kernel/item.h> #include <kernel/item.h>
#include <kernel/magic.h> #include <kernel/magic.h>

View File

@ -32,6 +32,7 @@ without prior permission by the authors of Eressea.
#include <kernel/alchemy.h> #include <kernel/alchemy.h>
#include <kernel/alliance.h> #include <kernel/alliance.h>
#include <kernel/connection.h> #include <kernel/connection.h>
#include <kernel/curse.h>
#include <kernel/building.h> #include <kernel/building.h>
#include <kernel/faction.h> #include <kernel/faction.h>
#include <kernel/group.h> #include <kernel/group.h>

View File

@ -1,14 +1,7 @@
cmake_minimum_required (VERSION 2.4) cmake_minimum_required (VERSION 2.4)
project (kernel) project (kernel)
#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 (..) include_directories (..)
#include_directories (${LUA_INCLUDE_DIR})
include_directories (${LIBXML2_INCLUDE_DIR}) include_directories (${LIBXML2_INCLUDE_DIR})
include_directories (${CRITBIT_INCLUDE_DIR}) include_directories (${CRITBIT_INCLUDE_DIR})
include_directories (${QUICKLIST_INCLUDE_DIR}) include_directories (${QUICKLIST_INCLUDE_DIR})

View File

@ -3,16 +3,13 @@ project (util)
find_package (Lua51 REQUIRED) find_package (Lua51 REQUIRED)
find_package (LibXml2 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 (..)
include_directories (.. include_directories (${CRITBIT_INCLUDE_DIR})
${CRITBIT_INCLUDE_DIR} include_directories (${QUICKLIST_INCLUDE_DIR})
${QUICKLIST_INCLUDE_DIR} include_directories (${CUTEST_INCLUDE_DIR})
${CUTEST_INCLUDE_DIR} include_directories (${LUA_INCLUDE_DIR})
) include_directories (${LIBXML2_INCLUDE_DIR})
add_library (util attrib.c add_library (util attrib.c
base36.c base36.c