-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
64 lines (61 loc) · 1.5 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
##################################################################
# LSD2 cmake build definition
# Added by Bui Quang Minh in April 2020
##################################################################
# Build Release mode by default with compiler optimizations turned on (e.g. -O3)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif()
if (USE_LSD2)
# compile LSD2 as a library
add_library(lsd2
src/confidence_interval.cpp
src/confidence_interval.h
src/date.h
src/dating.cpp
src/dating.h
src/estimate_root.cpp
src/estimate_root.h
src/lsd.cpp
src/lsd.h
src/node.h
src/options.cpp
src/options.h
src/outliers.cpp
src/outliers.h
src/pair.h
src/part.h
src/pr.h
src/readData.cpp
src/readData.h
src/subtree.h
src/utils.cpp
src/utils.h
)
else()
# compile LSD2 as a stand-alone program
add_executable(lsd2
src/confidence_interval.cpp
src/confidence_interval.h
src/date.h
src/dating.cpp
src/dating.h
src/estimate_root.cpp
src/estimate_root.h
src/lsd.cpp
src/lsd.h
src/node.h
src/options.cpp
src/options.h
src/outliers.cpp
src/outliers.h
src/pair.h
src/part.h
src/pr.h
src/readData.cpp
src/readData.h
src/subtree.h
src/utils.cpp
src/utils.h
)
endif()