-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
225 lines (178 loc) · 6.29 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(GInt)
set(CMAKE_BUILD_TYPE Release)
add_definitions(-std=c++11)
if(POLICY CMP0012)
cmake_policy(SET CMP0012 NEW)
endif()
ADD_SUBDIRECTORY(src)
option(VTK_SUPPORT_ENABLED "Enable VTK" FALSE)
option(VTK_ENABLED "Enable VTK" FALSE)
if(VTK_SUPPORT_ENABLED)
find_package(VTK REQUIRED)
#include(${VTK_USE_FILE})
ADD_DEFINITIONS(-DVTK_ENABLED)
endif()
if(CMAKE_GENERATOR STREQUAL Xcode)
set(APPLE_CLANG_COMPILER /usr/local/opt/llvm/bin/clang)
set(CMAKE_CXX_FLAGS "-fopenmp -std=c++11")
link_directories(/usr/local/Cellar/llvm/5.0.1/lib)
endif()
#option(FIND_OPENMP_ENABLED "Enable FindOpenMP, not necessary on Apple" OFF)
option(INTEGRATION_ENABLED "Build integration" FALSE)
if(INTEGRATION_ENABLED)
ADD_SUBDIRECTORY(integrator)
endif()
option(ONLY_INTEGRATOR_ENABLED "Build only integration" FALSE)
if(ONLY_INTEGRATOR_ENABLED)
ADD_SUBDIRECTORY(onlyintegration)
endif()
option(EXTRACT_MESH_FUNCTION_ENABLED "Build extract mesh function" FALSE)
if(EXTRACT_MESH_FUNCTION_ENABLED)
ADD_SUBDIRECTORY(extractmeshfunction)
endif()
option(ON_DEMAND_ACCURATE_ENABLED "Build ondemand accurate" FALSE)
if(ON_DEMAND_ACCURATE_ENABLED)
ADD_SUBDIRECTORY(ondemandaccurate)
ADD_SUBDIRECTORY(ondemandaccurate2d)
endif()
option(STREMLINES_2D_ENABLED "Build 2d streamline integrator" FALSE)
if(STREMLINES_2D_ENABLED)
ADD_SUBDIRECTORY(streamlines2d)
endif()
option(SPARSEBLOCKEDCOMPUTE_ENABLED "Build sparse blocked compute integrator" FALSE)
if(SPARSEBLOCKEDCOMPUTE_ENABLED)
ADD_SUBDIRECTORY(sparseblockedcompute)
endif()
option(ALL_INTEGRATION_MSC_ENABLED "Build all integration MSC" FALSE)
if(ALL_INTEGRATION_MSC_ENABLED)
ADD_SUBDIRECTORY(allintegrationmorsecomplex)
endif()
option(CONVERGENT_ENABLED "Build convergent" FALSE)
if(CONVERGENT_ENABLED)
ADD_SUBDIRECTORY(convergent)
endif()
option(EXTRACT_CENTROIDS_ENABLED "Build extract ligaments centroids" FALSE)
if(EXTRACT_CENTROIDS_ENABLED)
ADD_SUBDIRECTORY(extractcentroids)
endif()
option(ACCURATE_3D_MORSE_LABELING "Compute accurate 3d morse labeling" FALSE)
if(ACCURATE_3D_MORSE_LABELING)
ADD_SUBDIRECTORY(accurate3dmorselabeling)
endif()
option(LABELING_TO_STRATIFIED_COMPLEX "Turn grid labeling into stratified complex" FALSE)
if(LABELING_TO_STRATIFIED_COMPLEX)
ADD_SUBDIRECTORY(labelingtostratifiedcomplex)
endif()
option(PRUNE_LIGAMENTS "prune away boundary ligaments" FALSE)
if(PRUNE_LIGAMENTS)
ADD_SUBDIRECTORY(pruneligaments)
endif()
option(EXTRACT_GRAPH_ENABLED "Build extract graph" FALSE)
if(EXTRACT_GRAPH_ENABLED)
ADD_SUBDIRECTORY(extractgraph)
endif()
option(EXTRACT_MSC_ENABLED "Build extract msc" FALSE)
if(EXTRACT_MSC_ENABLED)
ADD_SUBDIRECTORY(extractmsc)
endif()
option(EXTRACT_FILTERED_LINE_SOUP_ENABLED "Build extract filtered line soup" FALSE)
if(EXTRACT_FILTERED_LINE_SOUP_ENABLED)
ADD_SUBDIRECTORY(extractfilteredlinesoup)
endif()
option(EXTRACT_METRICS_ENABLED "Build extract metrics" FALSE)
if(EXTRACT_METRICS_ENABLED)
ADD_SUBDIRECTORY(extractmetrics)
endif()
option(EXTRACT_SIMPLIFIED_MORSE "Build extract simplified Morse labeling" FALSE)
if(EXTRACT_SIMPLIFIED_MORSE)
ADD_SUBDIRECTORY(extractsimplifiedmorse)
endif()
option(EXTRACT_CROSS_SECTION_ENABLED "Build extract cross section" FALSE)
if(EXTRACT_CROSS_SECTION_ENABLED)
ADD_SUBDIRECTORY(extractcrosssection)
endif()
option(EXTRACT_MULTI_CROSS_SECTION_ENABLED "Build extract multiple cross sections" FALSE)
if(EXTRACT_MULTI_CROSS_SECTION_ENABLED)
ADD_SUBDIRECTORY(extractmulticrosssections)
endif()
option(EXTRACT_CURVATURE_ENABLED "Build extract curvature" FALSE)
if(EXTRACT_CURVATURE_ENABLED)
ADD_SUBDIRECTORY(extractcurvature)
endif()
option(LABEL_CONN_COMP_ENABLED "Label connected components" FALSE)
if(LABEL_CONN_COMP_ENABLED)
ADD_SUBDIRECTORY(labelconnectedcomponents)
endif()
option(INTENSITY_FIELD_CONTOUR_VIEWER_ENABLED "View Contours of For Various Thresholds" FALSE)
if(INTENSITY_FIELD_CONTOUR_VIEWER_ENABLED)
ADD_SUBDIRECTORY(intensityFieldContourView)
endif()
option(EXTRACT_CONN_COMP_ENABLED "Extract connected components" FALSE)
if(EXTRACT_CONN_COMP_ENABLED)
ADD_SUBDIRECTORY(extractconnectedcomponents)
endif()
option(EXTRACT_LABELED_COMP_ENABLED "Extract labeled components" FALSE)
if(EXTRACT_LABELED_COMP_ENABLED)
ADD_SUBDIRECTORY(extractlabeledcomponents)
endif()
option(FILTERED_LINESOUP_PY "Compute grad and extract linesoup" FALSE)
if(FILTERED_LINESOUP_PY)
add_subdirectory(extern/pybind11)
ADD_SUBDIRECTORY(filteredlinesoup_py)
ADD_SUBDIRECTORY(filteredlinesoup)
endif()
option(MSC_PY "Python interface to compute dgrad and msc" FALSE)
if(MSC_PY)
add_subdirectory(extern/pybind11)
ADD_SUBDIRECTORY(msc_py)
add_subdirectory(msc_test)
endif()
option(STEEPEST_ENABLED "Build steepest" FALSE)
if(STEEPEST_ENABLED)
ADD_SUBDIRECTORY(steepest)
endif()
option(STEEPEST_LSTAR_ENABLED "Build steepest lstar" FALSE)
if(STEEPEST_LSTAR_ENABLED)
ADD_SUBDIRECTORY(steepest_lstar)
endif()
option(STEEPEST_LSTAR_TILED_ENABLED "Build steepest lstar tiled" FALSE)
if(STEEPEST_LSTAR_TILED_ENABLED)
ADD_SUBDIRECTORY(steepest_lstar_tiled)
endif()
option(MAKE_CONST_SMALL_GRID_ENABLED "Build make const small grid" FALSE)
if(MAKE_CONST_SMALL_GRID_ENABLED)
ADD_SUBDIRECTORY(make_const_small_grid)
endif()
option(MORSE_HIERARCHY_2D_ENABLED "Build Morse hierarchy 2D" FALSE)
if(MORSE_HIERARCHY_2D_ENABLED)
ADD_SUBDIRECTORY(morsehierarchy2d)
endif()
option(EXTRACT_2D_RIDGE_GRAPH_ENABLED "Extract 2D geometric ridge graph" FALSE)
if(EXTRACT_2D_RIDGE_GRAPH_ENABLED)
ADD_SUBDIRECTORY(extract2dridgegraph)
endif()
option(EXTRACT_2D_REGION_GRAPH_ENABLED "Extract 2D geometric region graph" FALSE)
if(EXTRACT_2D_REGION_GRAPH_ENABLED)
ADD_SUBDIRECTORY(extract2dregiongraph)
endif()
option(PATH_COMPRESS_INTEGRATOR_ENABLED "Build compress integrator" FALSE)
if(PATH_COMPRESS_INTEGRATOR_ENABLED)
ADD_SUBDIRECTORY(pathcompressintegrator)
endif()
option(MIN_NETWORK_ENABLED "Build min network" FALSE)
if(MIN_NETWORK_ENABLED)
ADD_SUBDIRECTORY(buildminnetwork)
endif()
option(TRIANGLE_TEST_ENABLED "Build triangle test" FALSE)
if(TRIANGLE_TEST_ENABLED)
ADD_SUBDIRECTORY(triangletest)
endif()
option(GENERATE_ISOSURFACE_ENABLED "Generate isosurface util" FALSE)
if(GENERATE_ISOSURFACE_ENABLED)
ADD_SUBDIRECTORY(generateisosurface)
endif()
option(EXPERIMENTAL_ENABLED "Build experimental" FALSE)
if(EXPERIMENTAL_ENABLED)
ADD_SUBDIRECTORY(experimental)
endif()