29 lines
844 B
CMake
29 lines
844 B
CMake
# Copyright (c) 2023 Dominic Masters
|
|
#
|
|
# This software is released under the MIT License.
|
|
# https://opensource.org/licenses/MIT
|
|
|
|
# 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(save)
|
|
add_subdirectory(scene)
|
|
|
|
# Assets
|
|
set(ROSE_ASSETS_DIR ${DAWN_ASSETS_DIR}/games/rose)
|
|
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/Player.xml)
|
|
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/Urchin.xml)
|
|
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/Crab.xml)
|
|
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/SwordHitbox.xml)
|
|
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/Wall.xml)
|
|
|
|
tool_texture(texture_urchin ${ROSE_ASSETS_DIR}/textures/Urchin.png)
|
|
tool_texture(texture_player ${ROSE_ASSETS_DIR}/textures/Player.png) |