server/src/kernel/CMakeLists.txt
Enno Rehling 28726e2bea update cmake to compile without sqlite3, curses or libxml2 installed.
This is not actually recommended, but your system may not have
this,and you should still be able to contribute. also, libxml2 is on
the way out, I am beginning to really hate it.

Moving a couple of files around.
2014-06-11 20:30:34 -07:00

69 lines
886 B
CMake

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
jsonconf_test.c
)
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
messages.c
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
jsonconf.c
)
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)