-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
14 lines (9 loc) · 924 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
cmake_minimum_required(VERSION 3.12)
project(ray_tracer)
add_subdirectory(googletest)
include_directories(googletest/include) # this is so we can #include <gtest/gtest.h>
set(SOURCES source/FloatHelper.cpp source/Tuple.cpp source/Color.cpp source/Canvas.cpp source/CanvasExporter.cpp source/Matrix.cpp tests/tests.cpp tests/TupleTests.cpp tests/ProjectileTests.cpp tests/ColorTests.cpp tests/CanvasTests.cpp tests/ColorTestHelpers.cpp tests/CanvasExporterTests.cpp tests/MatrixTests.cpp tests/TransformationTests.cpp tests/ClockTests.cpp)
set(HEADERS source/FloatHelper.h source/Tuple.h source/Canvas.h source/CanvasExporter.h source/Matrix.h tests/ColorTestHelpers.h)
add_executable(raytracertests ${SOURCES} ${HEADERS}) # add this executable
target_include_directories(raytracertests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/source)
target_link_libraries(raytracertests PRIVATE gtest) # link google test to this executable