2024-07-29 22:20:30 +00:00
|
|
|
cmake_minimum_required(VERSION 3.21)
|
|
|
|
|
2024-09-25 15:29:58 +00:00
|
|
|
project(scenery LANGUAGES C)
|
2024-07-29 22:20:30 +00:00
|
|
|
|
|
|
|
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
|
2024-07-29 22:36:57 +00:00
|
|
|
game.c
|
2024-07-29 22:20:30 +00:00
|
|
|
state.h
|
|
|
|
|
|
|
|
scenes/scene.c scenes/scene.h
|
|
|
|
scenes/title.c scenes/title.h
|
|
|
|
scenes/ingame.c scenes/ingame.h
|
|
|
|
)
|
|
|
|
|
2024-08-21 18:38:24 +00:00
|
|
|
use_townengine(${PROJECT_NAME} "${SOURCE_FILES}" ${CMAKE_CURRENT_SOURCE_DIR} ../../data)
|