-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathCMakeLists.txt
56 lines (48 loc) · 998 Bytes
/
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
project(GPU-path-tracing-tutorial-4)
cmake_minimum_required(VERSION 2.8)
find_package(CUDA REQUIRED)
find_package(GLEW REQUIRED)
find_package(GLUT REQUIRED)
find_package(OpenGL REQUIRED)
include_directories(${CUDA_INCLUDE_DIRS})
include_directories(${GLEW_INCLUDE_DIR})
include_directories(${GLUT_INCLUDE_DIR})
include_directories(${OPENGL_INCLUDE_DIR})
set(HEADERS
Array.h
BVH.h
BVHNode.h
Camera.h
CudaBVH.h
CudaRenderKernel.h
Geometry.h
HDRloader.h
MouseKeyboardInput.h
Scene.h
SceneLoader.h
Sort.h
SplitBVHBuilder.h
Util.h
cutil_math.h
linear_math.h
)
set(SOURCES
BVH.cpp
BVHNode.cpp
Camera.cpp
CudaBVH.cpp
HDRloader.cpp
main.cpp
renderkernel.cu
SceneLoader.cpp
Sort.cpp
SplitBVHBuilder.cpp
Util.cpp
)
cuda_add_executable(tutorial4 ${HEADERS} ${SOURCES})
target_link_libraries(tutorial4
${CUDA_LIBRARIES}
${GLEW_LIBRARIES}
${GLUT_LIBRARIES}
${OPENGL_LIBRARIES}
)