cmake_minimum_required(VERSION 3.10)

# set the project name
project(RedScarfEngine VERSION 0.1.0)

# specify the C++ standard
set(CMAKE_C++_STANDARD 14)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED True)

if (MSVC)
    # warning level 4 and all warnings as errors
    add_compile_options(/W4 /WX)
else()
    # lots of warnings and all warnings as errors
    add_compile_options(-Wall -Wextra -pedantic -Werror)
endif()

add_subdirectory(Graphics)
add_subdirectory(RedScarfEngine)

install(TARGETS RedScarfEngine GraphicsEngine
        DESTINATION ${PROJECT_SOURCE_DIR}/bin)
