[FEAT] Add test and Tuplus object

This commit is contained in:
NADAL Jean-Baptiste
2024-01-29 18:43:18 +01:00
parent 425bf4689e
commit 2c4d63d622
9 changed files with 220 additions and 10 deletions

View File

@@ -2,23 +2,29 @@ cmake_minimum_required(VERSION 3.14)
project(raytracing_challenge)
# GoogleTest requires at least C++14
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
URL https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
enable_testing()
include_directories("${CMAKE_SOURCE_DIR}/src")
add_executable(
rc_tests
tests/chapitre01_tests.cpp
src/tuple.cpp
tests/chapitre01_tuples.cpp
)
target_link_libraries(
rc_tests