/apps: separate /apps/testgame into /apps/platformer and /apps/scenery, update /apps/template

This commit is contained in:
2024-09-25 18:29:58 +03:00
parent 65425f5b2e
commit a7d97a1070
26 changed files with 312 additions and 36 deletions

View File

@@ -0,0 +1,23 @@
cmake_minimum_required(VERSION 3.21)
project(scenery LANGUAGES C)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif()
# add root townengine cmake file
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(../../ ../../../.build)
endif()
set(SOURCE_FILES
game.c
state.h
scenes/scene.c scenes/scene.h
scenes/title.c scenes/title.h
scenes/ingame.c scenes/ingame.h
)
use_townengine(${PROJECT_NAME} "${SOURCE_FILES}" ${CMAKE_CURRENT_SOURCE_DIR} ../../data)