cmake_minimum_required(VERSION 3.16)
project(stats LANGUAGES CXX VERSION 0.1.0)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

add_library(stats src/stats.cpp)
target_include_directories(stats PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_compile_options(stats PRIVATE -Wall -Wextra)

add_executable(report src/main.cpp)
target_link_libraries(report PRIVATE stats)

# Task 2 goes here: enable testing, find Catch2, build tests/test_stats.cpp
# into a target that links stats and Catch2::Catch2WithMain, and register it
# with catch_discover_tests.
