34 lines
1.1 KiB
CMake
34 lines
1.1 KiB
CMake
# Copyright (c) 2022 Dominic Masters
|
|
#
|
|
# This software is released under the MIT License.
|
|
# https://opensource.org/licenses/MIT
|
|
|
|
# Add Common Engine Parts
|
|
set(DAWN_VISUAL_NOVEL true CACHE INTERNAL ${DAWN_CACHE_TARGET})
|
|
|
|
# Build Project
|
|
add_executable(${DAWN_TARGET_NAME})
|
|
|
|
# Includes
|
|
target_include_directories(${DAWN_TARGET_NAME}
|
|
PUBLIC
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
)
|
|
|
|
# Subdirs
|
|
add_subdirectory(game)
|
|
add_subdirectory(ui)
|
|
add_subdirectory(visualnovel)
|
|
add_subdirectory(prefabs)
|
|
add_subdirectory(save)
|
|
add_subdirectory(scenes)
|
|
|
|
# Assets
|
|
set(DIR_GAME_ASSETS games/pokergame)
|
|
tool_texture(texture_test texture_test.png)
|
|
tool_language(locale_poker ${DIR_GAME_ASSETS}/locale/locale.xml)
|
|
tool_tileset(tileset_death texture_death ${DIR_GAME_ASSETS}/characters/death/sheet.png 1 3)
|
|
tool_tileset(tileset_penny texture_penny ${DIR_GAME_ASSETS}/characters/penny/sheet.png 1 3)
|
|
tool_truetype(truetype_bizudp ${DIR_GAME_ASSETS}/font/BIZUDPGothic-Regular.ttf truetype_bizudp 2048 2048 120)
|
|
tool_audio(audio_test borrowed/sample_short.wav)
|
|
tool_vnscene(Scene_1 ${DIR_GAME_ASSETS}/vn/Scene_1.xml) |