forked from github/server
94 lines
1.3 KiB
CMake
94 lines
1.3 KiB
CMake
cmake_minimum_required(VERSION 2.6)
|
|
project(kernel C)
|
|
|
|
SET(_DBFILES db/memory.c)
|
|
|
|
IF(SQLITE3_FOUND)
|
|
SET(_DBFILES db/sqlite.c)
|
|
ELSEIF(DB_FOUND)
|
|
SET(_DBFILES db/berkeley.c)
|
|
ENDIF(SQLITE3_FOUND)
|
|
|
|
SET(_TEST_FILES
|
|
alliance.test.c
|
|
ally.test.c
|
|
attrib.test.c
|
|
build.test.c
|
|
building.test.c
|
|
# callbacks.test.c
|
|
calendar.test.c
|
|
command.test.c
|
|
config.test.c
|
|
# connection.test.c
|
|
curse.test.c
|
|
database.test.c
|
|
equipment.test.c
|
|
# event.test.c
|
|
faction.test.c
|
|
gamedata.test.c
|
|
group.test.c
|
|
item.test.c
|
|
messages.test.c
|
|
order.test.c
|
|
# pathfinder.test.c
|
|
plane.test.c
|
|
pool.test.c
|
|
race.test.c
|
|
region.test.c
|
|
# resources.test.c
|
|
save.test.c
|
|
ship.test.c
|
|
skills.test.c
|
|
spellbook.test.c
|
|
spell.test.c
|
|
# terrain.test.c
|
|
unit.test.c
|
|
)
|
|
|
|
SET(_FILES
|
|
${_DBFILES}
|
|
alliance.c
|
|
ally.c
|
|
attrib.c
|
|
build.c
|
|
building.c
|
|
callbacks.c
|
|
calendar.c
|
|
command.c
|
|
config.c
|
|
connection.c
|
|
curse.c
|
|
database.c
|
|
equipment.c
|
|
event.c
|
|
faction.c
|
|
gamedata.c
|
|
group.c
|
|
item.c
|
|
messages.c
|
|
order.c
|
|
pathfinder.c
|
|
plane.c
|
|
pool.c
|
|
race.c
|
|
region.c
|
|
resources.c
|
|
save.c
|
|
ship.c
|
|
skills.c
|
|
spellbook.c
|
|
spell.c
|
|
terrain.c
|
|
unit.c
|
|
)
|
|
|
|
SET(VERSION_SRC ${PROJECT_NAME}/version.c PARENT_SCOPE)
|
|
|
|
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)
|