-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·76 lines (68 loc) · 1.96 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
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
cmake_minimum_required(VERSION 3.0)
project(Renderer)
set(CMAKE_CXX_STANDARD 17)
include_directories(/usr/local/include)
find_package(OpenMP)
if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
endif()
set(SOURCES
./src/accelerators/aabb.h
./src/accelerators/bvh.h
./src/core/bsdf.h
./src/core/bsdf.cpp
./src/core/camera.h
./src/core/global_stb_image.h
./src/core/global.h
./src/core/hittable_list.h
./src/core/integrator.h
./src/core/integrator.cpp
./src/core/light.h
./src/core/light.cpp
./src/core/material.h
./src/core/medium.h
./src/core/medium.cpp
./src/core/microfacet.h
./src/core/microfacet.cpp
./src/core/object.h
./src/core/ray.h
./src/core/record.h
./src/core/renderer.h
./src/core/renderer.cpp
./src/core/sampler.h
./src/core/scene.h
./src/core/scene.cpp
./src/core/spectrum.h
./src/core/spectrum.cpp
./src/core/transform.h
./src/core/transform.cpp
./src/core/vector.h
./src/core/vector.cpp
./src/external/stb_image.h
./src/external/tiny_obj_loader.h
./src/integrators/path.h
./src/integrators/path.cpp
./src/integrators/volpath.h
./src/integrators/volpath.cpp
./src/lights/point.h
./src/lights/point.cpp
./src/lights/diffuse.h
./src/lights/diffuse.cpp
./src/materials/matte.h
./src/materials/matte.cpp
./src/materials/glass.h
./src/materials/glass.cpp
./src/materials/metal.h
./src/materials/metal.cpp
./src/materials/plastic.h
./src/materials/plastic.cpp
./src/shapes/triangle.h
./src/shapes/aarect.h
./src/shapes/sphere.h
./src/medium/homogeneous.h
./src/medium/homogeneous.cpp
./src/main/main.cpp
)
add_executable(Renderer ${SOURCES})