forked from luanfujun/Langevin-MCMC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
79 lines (65 loc) · 1.18 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
cmake_minimum_required(VERSION 3.15)
set (CMAKE_CXX_STANDARD 17)
project(LMC CXX)
add_definitions(-DSINGLE_PRECISION)
find_package (Eigen3 3.3 REQUIRED NO_MODULE)
find_package(TBB)
file(GLOB SRC_FILES
"src/*.h"
"src/*.cpp"
)
# list(REMOVE_ITEM SRC_FILES
# blendbsdf.cpp
# blendbsdf.h
# )
add_subdirectory(nanoflann)
# add_subdirectory(oiio)
add_executable(dpt ${SRC_FILES})
target_include_directories(dpt
PRIVATE
../embree3/include
../oiio/dist/linux64/include
)
target_link_directories(dpt
PRIVATE
../embree3/lib
../oiio/dist/linux64/lib
)
target_link_libraries (dpt
Eigen3::Eigen
tbb
nanoflann::nanoflann
OpenImageIO
embree3
boost_system
dl
z
pthread
)
configure_file(ispc/bin/ispc ispc COPYONLY)
# tests
add_executable(check_cond_der
tests/check_cond_der.cpp
src/chad.cpp
src/alignedallocator.cpp
)
target_include_directories(check_cond_der
PRIVATE src
)
target_link_libraries(check_cond_der
Eigen3::Eigen
dl
)
add_executable(load_ply
tests/load_ply.cpp
src/chad.cpp
src/alignedallocator.cpp
src/parseply.cpp
)
target_include_directories(load_ply
PRIVATE src
)
target_link_libraries(load_ply
Eigen3::Eigen
dl
)