/
CMakeLists.txt
executable file
·44 lines (40 loc) · 1.63 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required(VERSION 3.10)
project(RayTracing)
set(CMAKE_CXX_STANDARD 17)
# Assignment 5
add_executable(Assignment5
assignment5/main.cpp
assignment5/Object.hpp
assignment5/Vector.hpp
assignment5/Sphere.hpp
assignment5/global.hpp
assignment5/Triangle.hpp
assignment5/Scene.cpp
assignment5/Scene.hpp
assignment5/Light.hpp
assignment5/Renderer.cpp)
target_compile_options(Assignment5 PUBLIC -Wall -Wextra -pedantic -Wshadow -Wreturn-type -fsanitize=undefined)
target_compile_features(Assignment5 PUBLIC cxx_std_17)
target_link_libraries(Assignment5 PUBLIC -fsanitize=undefined)
# Assignment 6
add_executable(Assignment6
assignment6/main.cpp
assignment6/Object.hpp
assignment6/Vector.cpp assignment6/Vector.hpp
assignment6/Sphere.hpp assignment6/global.hpp
assignment6/Triangle.hpp
assignment6/Scene.cpp assignment6/Scene.hpp
assignment6/Light.hpp assignment6/AreaLight.hpp
assignment6/BVH.cpp assignment6/BVH.hpp assignment6/Bounds3.hpp
assignment6/Ray.hpp assignment6/Material.hpp assignment6/Intersection.hpp
assignment6/Renderer.cpp assignment6/Renderer.hpp)
# Assignment 7
add_executable(Assignment7
assignment7/main.cpp assignment7/Object.hpp
assignment7/Vector.cpp assignment7/Vector.hpp
assignment7/Sphere.hpp assignment7/global.hpp assignment7/Triangle.hpp
assignment7/Scene.cpp assignment7/Scene.hpp
assignment7/Light.hpp assignment7/AreaLight.hpp
assignment7/BVH.cpp assignment7/BVH.hpp assignment7/Bounds3.hpp
assignment7/Ray.hpp assignment7/Material.hpp assignment7/Intersection.hpp
assignment7/Renderer.cpp assignment7/Renderer.hpp)