2014-02-18 05:45:00 +01:00
|
|
|
project(kernel C)
|
|
|
|
|
|
|
|
SET(_TEST_FILES
|
|
|
|
ship_test.c
|
|
|
|
spell_test.c
|
|
|
|
ally_test.c
|
|
|
|
battle_test.c
|
|
|
|
building_test.c
|
|
|
|
magic_test.c
|
|
|
|
equipment_test.c
|
|
|
|
curse_test.c
|
|
|
|
item_test.c
|
|
|
|
move_test.c
|
|
|
|
pool_test.c
|
|
|
|
reports_test.c
|
|
|
|
spellbook_test.c
|
|
|
|
curse_test.c
|
2014-06-08 07:17:48 +02:00
|
|
|
jsonconf_test.c
|
2014-02-18 05:45:00 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
SET(_FILES
|
|
|
|
alchemy.c
|
|
|
|
alliance.c
|
|
|
|
ally.c
|
|
|
|
battle.c
|
|
|
|
build.c
|
|
|
|
building.c
|
|
|
|
calendar.c
|
|
|
|
command.c
|
|
|
|
config.c
|
|
|
|
connection.c
|
|
|
|
curse.c
|
|
|
|
equipment.c
|
|
|
|
faction.c
|
|
|
|
group.c
|
|
|
|
item.c
|
|
|
|
magic.c
|
2014-06-09 18:54:48 +02:00
|
|
|
messages.c
|
2014-02-18 05:45:00 +01:00
|
|
|
move.c
|
|
|
|
names.c
|
|
|
|
order.c
|
|
|
|
pathfinder.c
|
|
|
|
plane.c
|
|
|
|
player.c
|
|
|
|
pool.c
|
|
|
|
race.c
|
|
|
|
region.c
|
|
|
|
reports.c
|
|
|
|
resources.c
|
|
|
|
save.c
|
|
|
|
ship.c
|
|
|
|
skill.c
|
|
|
|
spellbook.c
|
|
|
|
spell.c
|
|
|
|
teleport.c
|
|
|
|
terrain.c
|
|
|
|
unit.c
|
|
|
|
xmlreader.c
|
2014-06-08 07:17:48 +02:00
|
|
|
jsonconf.c
|
2014-02-18 05:45:00 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
FOREACH(_FILE ${_FILES})
|
|
|
|
LIST(APPEND _SOURCES ${PROJECT_NAME}/${_FILE})
|
|
|
|
ENDFOREACH(_FILE)
|
|
|
|
SET(KERNEL_SRC ${_SOURCES} PARENT_SCOPE)
|
|
|
|
FOREACH(_FILE ${_TEST_FILES})
|
|
|
|
LIST(APPEND _TESTS ${PROJECT_NAME}/${_FILE})
|
|
|
|
ENDFOREACH(_FILE)
|
|
|
|
SET(KERNEL_TESTS ${_TESTS} PARENT_SCOPE)
|