Refactored some tooling.

This commit is contained in:
2021-10-16 20:06:17 -07:00
parent 97a8d936b5
commit d8ded38fd5
11 changed files with 260 additions and 46 deletions

View File

@@ -9,13 +9,24 @@ set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
project(Dawn VERSION 1.0)
set(GAME_NAME DawnGame)
set(GAME_VERSION 1.0)
# Targets
if(TARGET_GAME STREQUAL poker)
add_compile_definitions(
SETTING_GAME_NAME="Penny's Poker"
GAME_FILE="poker/game.h"
GAME_TYPE=pokergame_t
GAME_INIT=pokerGameInit
GAME_UPDATE=pokerGameUpdate
GAME_DISPOSE=pokerGameDispose
GAME_VERSION=1.0
)
endif()
##################################### LIBS #####################################
# Shared
add_subdirectory(lib)
add_subdirectory(src)
# Targets
if(TARGET_GROUP STREQUAL test)
add_subdirectory(test)
else()