forked from github/server
cmake configuration for gamecode
This commit is contained in:
parent
5cba331ad3
commit
a928c6b45c
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
)
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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})
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue