# The two tutorial games.
#
# Each one is a complete, running program that the matching chapter quotes with
# `c excerpt=examples/...` blocks rather than restating -- so a tutorial cannot
# drift from a program that builds, because the excerpt check fails the moment
# the source moves.
#
# Every subdirectory is guarded on its own. The games are written by separate
# passes and land at different times, and a configure that fails because one of
# them is not there yet would block the other. There is nothing clever about the
# guard; it exists so an incomplete tree still builds.
foreach(_example sidescroller jrpg)
  if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_example}/CMakeLists.txt")
    add_subdirectory(${_example})
  endif()
endforeach()
