All checks were successful
Merge-Checker / build_and_test (pull_request) Successful in 24s
21 lines
458 B
CMake
21 lines
458 B
CMake
cmake_minimum_required (VERSION 3.11)
|
|
project(Vector3D)
|
|
|
|
add_subdirectory(src)
|
|
add_subdirectory(unit-tests)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
add_compile_options(-Wall -Wextra -Wpedantic)
|
|
add_compile_options (-fdiagnostics-color=always)
|
|
set(CMAKE_COLOR_DIAGNOSTICS ON)
|
|
|
|
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
Catch2
|
|
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
|
|
GIT_TAG v3.8.0 # or a later release
|
|
)
|
|
|
|
FetchContent_MakeAvailable(Catch2) |