townengine/apps/demos/platformer/CMakeLists.txt

24 lines
466 B
CMake

cmake_minimum_required(VERSION 3.21)
project(platformer LANGUAGES C)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif()
add_subdirectory($ENV{TWNROOT} ${CMAKE_BINARY_DIR}/twn)
set(SOURCE_FILES
game.c
state.h
player.c player.h
world.c world.h
scenes/scene.c scenes/scene.h
scenes/title.c scenes/title.h
scenes/ingame.c scenes/ingame.h
)
use_townengine("${SOURCE_FILES}" ${TWN_OUT_DIR})