2016-09-16 10:55:38 +02:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
2014-02-18 05:45:00 +01:00
|
|
|
project(kernel C)
|
|
|
|
|
2018-09-28 21:43:20 +02:00
|
|
|
SET(_DBFILES db/memory.c)
|
2018-09-24 20:18:21 +02:00
|
|
|
|
|
|
|
IF(SQLITE3_FOUND)
|
|
|
|
SET(_DBFILES db/sqlite.c)
|
|
|
|
ELSEIF(DB_FOUND)
|
|
|
|
SET(_DBFILES db/berkeley.c)
|
|
|
|
ENDIF(SQLITE3_FOUND)
|
|
|
|
|
2014-02-18 05:45:00 +01:00
|
|
|
SET(_TEST_FILES
|
2014-12-09 14:43:11 +01:00
|
|
|
alliance.test.c
|
2014-06-16 17:07:08 +02:00
|
|
|
ally.test.c
|
2018-09-29 11:37:17 +02:00
|
|
|
attrib.test.c
|
2016-04-08 19:45:27 +02:00
|
|
|
build.test.c
|
2014-06-16 17:07:08 +02:00
|
|
|
building.test.c
|
2017-04-30 18:18:47 +02:00
|
|
|
# callbacks.test.c
|
2018-02-14 20:00:48 +01:00
|
|
|
calendar.test.c
|
2016-04-08 19:45:27 +02:00
|
|
|
command.test.c
|
|
|
|
config.test.c
|
2016-04-09 18:19:30 +02:00
|
|
|
# connection.test.c
|
2014-06-16 17:07:08 +02:00
|
|
|
curse.test.c
|
2017-11-18 12:54:48 +01:00
|
|
|
database.test.c
|
2016-04-08 19:45:27 +02:00
|
|
|
equipment.test.c
|
2018-09-29 11:37:17 +02:00
|
|
|
# event.test.c
|
2016-04-08 19:45:27 +02:00
|
|
|
faction.test.c
|
2018-09-29 13:21:46 +02:00
|
|
|
gamedata.test.c
|
2016-04-08 19:45:27 +02:00
|
|
|
group.test.c
|
2014-06-16 17:07:08 +02:00
|
|
|
item.test.c
|
2016-04-08 19:45:27 +02:00
|
|
|
messages.test.c
|
2014-08-16 23:23:37 +02:00
|
|
|
order.test.c
|
2017-05-02 15:10:43 +02:00
|
|
|
# pathfinder.test.c
|
2016-04-09 14:26:10 +02:00
|
|
|
plane.test.c
|
2014-06-16 17:07:08 +02:00
|
|
|
pool.test.c
|
2014-08-24 21:49:55 +02:00
|
|
|
race.test.c
|
2016-10-24 13:47:38 +02:00
|
|
|
region.test.c
|
2016-04-09 18:19:30 +02:00
|
|
|
# resources.test.c
|
2016-04-08 19:45:27 +02:00
|
|
|
save.test.c
|
|
|
|
ship.test.c
|
2018-01-17 18:04:04 +01:00
|
|
|
skills.test.c
|
2014-06-16 17:07:08 +02:00
|
|
|
spellbook.test.c
|
2016-04-08 19:45:27 +02:00
|
|
|
spell.test.c
|
2016-04-09 18:19:30 +02:00
|
|
|
# terrain.test.c
|
2016-04-08 19:45:27 +02:00
|
|
|
unit.test.c
|
2014-02-18 05:45:00 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
SET(_FILES
|
2017-11-09 19:55:28 +01:00
|
|
|
${_DBFILES}
|
2014-02-18 05:45:00 +01:00
|
|
|
alliance.c
|
|
|
|
ally.c
|
2018-09-29 11:37:17 +02:00
|
|
|
attrib.c
|
2014-02-18 05:45:00 +01:00
|
|
|
build.c
|
|
|
|
building.c
|
2017-04-30 18:18:47 +02:00
|
|
|
callbacks.c
|
2018-02-14 20:00:48 +01:00
|
|
|
calendar.c
|
2014-02-18 05:45:00 +01:00
|
|
|
command.c
|
|
|
|
config.c
|
|
|
|
connection.c
|
|
|
|
curse.c
|
2018-10-23 22:31:42 +02:00
|
|
|
database.c
|
2014-02-18 05:45:00 +01:00
|
|
|
equipment.c
|
2018-09-29 11:37:17 +02:00
|
|
|
event.c
|
2014-02-18 05:45:00 +01:00
|
|
|
faction.c
|
2018-09-29 13:21:46 +02:00
|
|
|
gamedata.c
|
2014-02-18 05:45:00 +01:00
|
|
|
group.c
|
|
|
|
item.c
|
2014-06-09 18:54:48 +02:00
|
|
|
messages.c
|
2014-02-18 05:45:00 +01:00
|
|
|
order.c
|
|
|
|
pathfinder.c
|
|
|
|
plane.c
|
|
|
|
pool.c
|
|
|
|
race.c
|
|
|
|
region.c
|
|
|
|
resources.c
|
|
|
|
save.c
|
|
|
|
ship.c
|
2014-06-21 08:59:04 +02:00
|
|
|
skills.c
|
2014-02-18 05:45:00 +01:00
|
|
|
spellbook.c
|
|
|
|
spell.c
|
|
|
|
terrain.c
|
|
|
|
unit.c
|
|
|
|
)
|
|
|
|
|
2016-09-16 09:39:59 +02:00
|
|
|
SET(VERSION_SRC ${PROJECT_NAME}/version.c PARENT_SCOPE)
|
|
|
|
|
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)
|