-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
149 lines (139 loc) · 6.58 KB
/
CMakeLists.txt
File metadata and controls
149 lines (139 loc) · 6.58 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
cmake_minimum_required(VERSION 3.14)
project(Graph_Hw1)
set(CMAKE_CXX_STANDARD 17)
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
include_directories(.)
include_directories(code_template)
add_executable(Graph_Hw1
code_template/parser.cpp
code_template/parser.h
code_template/ppm.cpp
code_template/ppm.h
code_template/raytracer.cpp
code_template/tinyxml2.cpp
code_template/tinyxml2.h
code_template/ray.cpp
code_template/ray.h
code_template/vec3.h
sample_scenes_v2/inputs/berserker.xml
sample_scenes_v2/inputs/bunny.xml
sample_scenes_v2/inputs/car.xml
sample_scenes_v2/inputs/cornellbox.xml
sample_scenes_v2/inputs/dragon_lowres.xml
sample_scenes_v2/inputs/horse_and_mug.xml
sample_scenes_v2/inputs/killeroo.xml
sample_scenes_v2/inputs/low_poly.xml
sample_scenes_v2/inputs/mirror_spheres.xml
sample_scenes_v2/inputs/monkey.xml
sample_scenes_v2/inputs/simple.xml
sample_scenes_v2/inputs/simple_reflectance.xml
sample_scenes_v2/inputs/simple_shading.xml
sample_scenes_v2/outputs/bfc_off/berserker.ppm
sample_scenes_v2/outputs/bfc_off/bunny.ppm
sample_scenes_v2/outputs/bfc_off/Car.ppm
sample_scenes_v2/outputs/bfc_off/Car_front.ppm
sample_scenes_v2/outputs/bfc_off/cornellbox_front.ppm
sample_scenes_v2/outputs/bfc_off/cornellbox_inverse.ppm
sample_scenes_v2/outputs/bfc_off/cornellbox_top.ppm
sample_scenes_v2/outputs/bfc_off/dragon_lowres.ppm
sample_scenes_v2/outputs/bfc_off/horse_and_mug.ppm
sample_scenes_v2/outputs/bfc_off/killeroo.ppm
sample_scenes_v2/outputs/bfc_off/low_poly_scene.ppm
sample_scenes_v2/outputs/bfc_off/mirror_spheres.ppm
sample_scenes_v2/outputs/bfc_off/monkey.ppm
sample_scenes_v2/outputs/bfc_off/simple.ppm
sample_scenes_v2/outputs/bfc_off/simple_reflectance.ppm
sample_scenes_v2/outputs/bfc_off/simple_shading.ppm
sample_scenes_v2/outputs/bfc_on/berserker.ppm
sample_scenes_v2/outputs/bfc_on/bunny.ppm
sample_scenes_v2/outputs/bfc_on/Car.ppm
sample_scenes_v2/outputs/bfc_on/Car_front.ppm
sample_scenes_v2/outputs/bfc_on/cornellbox_front.ppm
sample_scenes_v2/outputs/bfc_on/cornellbox_inverse.ppm
sample_scenes_v2/outputs/bfc_on/cornellbox_top.ppm
sample_scenes_v2/outputs/bfc_on/dragon_lowres.ppm
sample_scenes_v2/outputs/bfc_on/horse_and_mug.ppm
sample_scenes_v2/outputs/bfc_on/killeroo.ppm
sample_scenes_v2/outputs/bfc_on/low_poly_scene.ppm
sample_scenes_v2/outputs/bfc_on/mirror_spheres.ppm
sample_scenes_v2/outputs/bfc_on/monkey.ppm
sample_scenes_v2/outputs/bfc_on/simple.ppm
sample_scenes_v2/outputs/bfc_on/simple_reflectance.ppm
sample_scenes_v2/outputs/bfc_on/simple_shading.ppm code_template/Sphere.cpp code_template/Sphere.h code_template/utility.h code_template/camera_bundle.cpp code_template/camera_bundle.h code_template/triangle.cpp code_template/triangle.h code_template/mesh.cpp code_template/mesh.h code_template/shape.cpp code_template/shape.h)
add_executable(Graph_Hw1_Tester
code_template/parser.cpp
code_template/parser.h
code_template/ppm.cpp
code_template/ppm.h
code_template/tinyxml2.cpp
code_template/tinyxml2.h
code_template/ray.cpp
code_template/ray.h
code_template/vec3.h
sample_scenes_v2/inputs/berserker.xml
sample_scenes_v2/inputs/bunny.xml
sample_scenes_v2/inputs/car.xml
sample_scenes_v2/inputs/cornellbox.xml
sample_scenes_v2/inputs/dragon_lowres.xml
sample_scenes_v2/inputs/horse_and_mug.xml
sample_scenes_v2/inputs/killeroo.xml
sample_scenes_v2/inputs/low_poly.xml
sample_scenes_v2/inputs/mirror_spheres.xml
sample_scenes_v2/inputs/monkey.xml
sample_scenes_v2/inputs/simple.xml
sample_scenes_v2/inputs/simple_reflectance.xml
sample_scenes_v2/inputs/simple_shading.xml
sample_scenes_v2/outputs/bfc_off/berserker.ppm
sample_scenes_v2/outputs/bfc_off/bunny.ppm
sample_scenes_v2/outputs/bfc_off/Car.ppm
sample_scenes_v2/outputs/bfc_off/Car_front.ppm
sample_scenes_v2/outputs/bfc_off/cornellbox_front.ppm
sample_scenes_v2/outputs/bfc_off/cornellbox_inverse.ppm
sample_scenes_v2/outputs/bfc_off/cornellbox_top.ppm
sample_scenes_v2/outputs/bfc_off/dragon_lowres.ppm
sample_scenes_v2/outputs/bfc_off/horse_and_mug.ppm
sample_scenes_v2/outputs/bfc_off/killeroo.ppm
sample_scenes_v2/outputs/bfc_off/low_poly_scene.ppm
sample_scenes_v2/outputs/bfc_off/mirror_spheres.ppm
sample_scenes_v2/outputs/bfc_off/monkey.ppm
sample_scenes_v2/outputs/bfc_off/simple.ppm
sample_scenes_v2/outputs/bfc_off/simple_reflectance.ppm
sample_scenes_v2/outputs/bfc_off/simple_shading.ppm
sample_scenes_v2/outputs/bfc_on/berserker.ppm
sample_scenes_v2/outputs/bfc_on/bunny.ppm
sample_scenes_v2/outputs/bfc_on/Car.ppm
sample_scenes_v2/outputs/bfc_on/Car_front.ppm
sample_scenes_v2/outputs/bfc_on/cornellbox_front.ppm
sample_scenes_v2/outputs/bfc_on/cornellbox_inverse.ppm
sample_scenes_v2/outputs/bfc_on/cornellbox_top.ppm
sample_scenes_v2/outputs/bfc_on/dragon_lowres.ppm
sample_scenes_v2/outputs/bfc_on/horse_and_mug.ppm
sample_scenes_v2/outputs/bfc_on/killeroo.ppm
sample_scenes_v2/outputs/bfc_on/low_poly_scene.ppm
sample_scenes_v2/outputs/bfc_on/mirror_spheres.ppm
sample_scenes_v2/outputs/bfc_on/monkey.ppm
sample_scenes_v2/outputs/bfc_on/simple.ppm
sample_scenes_v2/outputs/bfc_on/simple_reflectance.ppm
sample_scenes_v2/outputs/bfc_on/simple_shading.ppm code_template/Sphere.cpp code_template/Sphere.h code_template/utility.h code_template/camera_bundle.cpp code_template/camera_bundle.h code_template/tester.cpp)
enable_testing()
add_executable(
ray_test
code_template/ray.cpp
code_template/ray.h
code_template/vec3.h
code_template/ray_test.cpp
code_template/triangle.cpp
)
target_link_libraries(
ray_test
gtest_main
)
include(GoogleTest)
gtest_discover_tests(ray_test)