-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
69 lines (67 loc) · 1.83 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
if(GLUT_FOUND AND OPENGL_FOUND)
include_directories(${GLUT_INCLUDE_DIR}
. core materials parsers passes renderers shapes
/usr/include/OpenEXR)
add_definitions(-DGLUT_FOUND -DGLUT_NO_LIB_PRAGMA)
# See top level CMakeLists.txt file for documentation of OPTIX_add_sample_executable.
OPTIX_add_sample_executable(MaoPPM
# header files
core/global.h
core/montecarlo.h
core/particle.h
core/payload.h
core/reflection.h
core/transport.h
core/utility.h
core/KdTree.h
core/DifferentialGeometry.h
core/Intersection.h
core/Light.h
core/Material.h
core/ParameterVector.h
core/BSDF.h
core/BxDF.h
core/Fresnel.h
core/MicrofacetDistribution.h
core/Renderer.h
core/SceneBuilder.h
core/Scene.h
core/System.h
materials/Glass.h
materials/Matte.h
materials/Mirror.h
materials/Plastic.h
renderers/IGPPMRenderer.h
renderers/PathTracingRenderer.h
renderers/PPMRenderer.h
# source files
core/global.cpp
core/main.cpp
core/Renderer.cpp
core/Scene.cpp
core/SceneBuilder.cpp
core/System.cpp
parsers/pbrtParser.cc
parsers/pbrtScanner.cc
renderers/IGPPMRenderer.cpp
renderers/PathTracingRenderer.cpp
renderers/PPMRenderer.cpp
# CUDA source files
core/exception.cu
core/ray.cu
core/Renderer.cu
materials/Glass.cu
materials/Matte.cu
materials/Mirror.cu
materials/Plastic.cu
renderers/IGPPMRenderer.cu
renderers/PathTracingRenderer.cu
renderers/PPMRenderer.cu
shapes/TriangleMesh.cu
shapes/Sphere.cu
)
target_link_libraries(MaoPPM IlmImf IlmThread Imath Iex Half)
else()
# GLUT or OpenGL not found
message("Disabling progressive_photon, which requires glut and opengl.")
endif()