create /apps/temapltes/ structure, clean up cmake files to use directory name for binary name directly

This commit is contained in:
veclavtalica
2025-02-01 13:47:17 +03:00
parent 24e8dc052d
commit aeabb17f86
9 changed files with 102 additions and 6 deletions

View File

@ -39,4 +39,5 @@ set(SOURCE_FILES
${CMAKE_CURRENT_SOURCE_DIR}/luabind.c
)
use_townengine(${CMAKE_PROJECT_NAME} "${SOURCE_FILES}" ${CMAKE_SOURCE_DIR})
cmake_path(GET CMAKE_SOURCE_DIR STEM LAST_ONLY GAME_PROJECT_NAME)
use_townengine(${GAME_PROJECT_NAME} "${SOURCE_FILES}" ${CMAKE_SOURCE_DIR})