Dawn/CMakeLists.txt

37 lines
949 B
CMake

# Copyright (c) 2021 Dominic Msters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
#################################### CMAKE #####################################
cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
project(Dawn 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()
# Shared
add_subdirectory(lib)
add_subdirectory(src)
# Targets
if(TARGET_GROUP STREQUAL test)
add_subdirectory(test)
else()
add_subdirectory(client)
endif()
#################################### ASSETS ####################################
file(COPY ${CMAKE_CURRENT_LIST_DIR}/assets DESTINATION ${CMAKE_CURRENT_BINARY_DIR})