# Copyright (c) 2022 Dominic Masters
# 
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT

# Check for build target, or default
if(NOT DEFINED DAWN_BUILD_TARGET)
  if(WIN32)
    set(DAWN_BUILD_TARGET "target-pokergame-win32-sdl2")
  elseif(UNIX AND NOT APPLE)
    set(DAWN_BUILD_TARGET "target-pokergame-linux64-glfw")
  endif()
endif()

# Now validate we have a build target for real
if(NOT DEFINED DAWN_BUILD_TARGET)
  message(FATAL_ERROR "You need to define a DAWN_BUILD_TARGET")
endif()

# Include the build target
add_subdirectory(${DAWN_BUILD_TARGET})