include(PrependFilePaths)

# Enable compiler warnings for everything within this directory
add_compile_options(${WARNING_FLAGS})

if(ENABLE_CODE_COVERAGE)
  add_compile_options(${CODE_COVERAGE_COMPILER_FLAGS})
endif()

if(TARGET_PLATFORM STREQUAL "Android")
  add_subdirectory(android/library/src/main/cpp)
elseif(TARGET_PLATFORM STREQUAL "iPhone" OR TARGET_PLATFORM STREQUAL "AppleTV" OR TARGET_PLATFORM STREQUAL "OSX")
  add_subdirectory(ios)
elseif(TARGET_PLATFORM STREQUAL "PS4")
  add_subdirectory(ps4)
elseif(TARGET_PLATFORM STREQUAL "Web")
  add_subdirectory(web)
elseif(TARGET_PLATFORM STREQUAL "WinStore" OR TARGET_PLATFORM STREQUAL "XboxOne")
  add_subdirectory(uwp)
elseif(TARGET_PLATFORM STREQUAL "Windows" OR TARGET_PLATFORM STREQUAL "Win64")
  add_subdirectory(windows)
elseif(TARGET_PLATFORM STREQUAL "Posix")
  add_subdirectory(posix)
else()
  message(SEND_ERROR "Unknown platform")
endif()
