-
Notifications
You must be signed in to change notification settings - Fork 23
/
CMakeLists.txt
84 lines (69 loc) · 1.31 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
77
78
79
80
81
82
83
84
cmake_minimum_required(VERSION 2.8)
project(variational-depth-from-focus)
# find cuda and openCV
find_package(CUDA REQUIRED)
find_package(OpenCV REQUIRED)
# specify include directories
include_directories(include/)
# headers to show up in qt creator
file(GLOB HEADERS
include/*.h$
include/*.hpp$
include/*.cuh$
)
# sources
set(SOURCES
src/vdff.cu
src/common_kernels.cu
src/LaplaceInversion.cu
src/FCT.cu
src/openCVHelpers.cpp
src/CUDATimer.cpp
src/cudaWrappers.cu
src/utils.cu
src/Tensor3f.cu
src/LinearizedADMM.cu
src/DataPreparator.cu
src/DataPreparatorTensor3f.cu
src/LayeredMemory.cu
src/CPUTimer.cpp
)
# this will be the main entry point for the project
if (MSVC)
cuda_add_executable(
vdff
${SOURCES}
src/wintime.cpp
)
else()
cuda_add_executable(
vdff
${SOURCES}
${HEADERS}
)
endif()
cuda_add_cufft_to_target(vdff)
cuda_add_cublas_to_target(vdff)
target_link_libraries(
vdff
${OpenCV_LIBS}
)
add_executable(
vdff-compress
src/compress.cpp
src/openCVHelpers.cpp
)
target_link_libraries(
vdff-compress
${OpenCV_LIBS}
)
add_executable(
vdff-compare
src/compare.cpp
src/openCVHelpers.cpp
)
target_link_libraries(
vdff-compare
${OpenCV_LIBS}
)
install(TARGETS vdff vdff-compress vdff-compare DESTINATION bin)