-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
67 lines (56 loc) · 1.27 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
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project(Cavalry LANGUAGES CXX CUDA C)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -use_fast_math --extended-lambda -std=c++17 -Xcompiler \"/std:c++17\"")
set(CMAKE_CXX_STANDARD 17)
include_directories(Dependencies/include)
file(GLOB ALL_CODE
"main.cu"
"BSDFs/*.h"
"BSDFs/*.cpp"
"BSDFs/*.cu"
"Cameras/*.h"
"Cameras/*.cpp"
"Cameras/*.cu"
"Core/*.h"
"Core/*.cpp"
"Core/*.cu"
"Dependencies/*.h"
"Dependencies/*.inc"
"Films/*.h"
"Films/*.cpp"
"Films/*.cu"
"Integrators/*.h"
"Integrators/*.cpp"
"Integrators/*.cu"
"Samplers/*.h"
"Samplers/*.cpp"
"Samplers/*.cu"
"Lights/*.h"
"Lights/*.cpp"
"Lights/*.cu"
"Utils/*.h"
"Utils/*.cpp"
"Utils/*.cu"
"SceneLoading/*.h"
"SceneLoading/*.cpp"
"SceneLoading/*.cu"
"Materials/*.h"
"Materials/*.cpp"
"Materials/*.cu"
"BVH/*.h"
"BVH/*.cpp"
"BVH/*.cu"
"ShapeMesh/*.h"
"ShapeMesh/*.cpp"
"ShapeMesh/*.cu"
"Filters/*.h"
"Filters/*.cpp"
"Filters/*.cu"
)
add_executable(Cavalry ${ALL_CODE})
set_property(TARGET Cavalry PROPERTY CUDA_STANDARD 17)
IF(APPLE)
set_property(TARGET Cavalry
PROPERTY
BUILD_RPATH /usr/local/cuda/lib)
ENDIF(APPLE)