Dawn/src/CMakeLists.txt

23 lines
587 B
CMake

# Copyright (c) 2022 Dominic Masters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
# Build Project
add_executable(${DAWN_TARGET_NAME})
# Add in base library
add_subdirectory(dawn)
# Compile entry targets
if(DAWN_TARGET STREQUAL "linux-x64-glfw")
add_subdirectory(dawnlinux)
add_subdirectory(dawnglfw)
add_subdirectory(dawnopengl)
add_subdirectory(dawnrpg)
else()
message(FATAL_ERROR "You need to define an entry target")
endif()
# Compress the game assets.
add_dependencies(${DAWN_TARGET_NAME} dawnassets)