forked from HumanBrainProject/nutil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNutil.pro
303 lines (239 loc) · 8.8 KB
/
Nutil.pro
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
#QT -= gui
QT += gui
QT += xml
#websockets
#CONFIG += static
CONFIG += c++11 console
CONFIG += app_bundle
QT += widgets
QT += core gui
QT += network
ARCH = $$QMAKE_HOST.arch
ARCH = arm64
TEMPLATE = app
#DEFINES += IS_BETA IGNORE_DOWNLOAD
DEFINES += IGNORE_DOWNLOAD
win32:RC_ICONS += nutil.ico
ICON = nutil.png
# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to cewxQQQ3 know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS USE_LIBTIFF
win32-msvc*{
QMAKE_CXXFLAGS += -openmp -Zc:twoPhase-
# QT_LIBS += -lQtXml
}
macx {
contains(ARCH, x86_64) |contains(ARCH, amd64): {
QMAKE_CXXFLAGS += -Xpreprocessor -fopenmp -I/usr/local/include
QMAKE_CXXFLAGS += -Ofast
INCLUDEPATH += /usr/local/include/
LIBS += -L/usr/local/lib/
LIBS += -ltiff
LIBS += -L$$PWD/lib/ -lxlnt
#LIBS += -L/usr/local/opt/libomp/lib -lomp
LIBS += -L/usr/local/lib /usr/local/lib/libomp.dylib -lomp
}
contains(ARCH, arm64): {
QMAKE_CXXFLAGS += -Xpreprocessor -fopenmp -I/usr/local/include
QMAKE_CXXFLAGS += -Ofast
INCLUDEPATH += /usr/local/include/
INCLUDEPATH += /opt/homebrew/include/
LIBS += -L/usr/local/lib/
LIBS += -L/opt/local/lib
LIBS += -ltiff
# LIBS += /opt/homebrew/lib/libtiff.a
# LIBS += -L$$PWD/lib/ -lxlnt
LIBS += -L$$PWD/lib/ $$PWD/lib/libxlnt-arm.dylib
#LIBS += -L/usr/local/opt/libomp/lib -lomp
LIBS += -L/opt/homebrew/lib /opt/homebrew/lib/libomp.dylib -lomp
QMAKE_APPLE_DEVICE_ARCHS=arm64
CONFIG += arm64
}
}
QMAKE_CXXFLAGS_DEBUG -= -O2
QMAKE_CXXFLAGS_RELEASE += -O2
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += main.cpp \
source/IO/nutiltemplate.cpp \
source/LBook/lbookhtml.cpp \
source/ProcessManager/processmanagerneuroglancer.cpp \
source/ProcessManager/processmanagerng.cpp \
source/ProcessManager/processmanagerresize.cpp \
source/Validator/nutilvalidator.cpp \
source/data.cpp \
source/dialoggeneratedata.cpp \
source/dialoghelp.cpp \
source/dialognewfile.cpp \
source/limage/lcolorlist.cpp \
source/limage/limage.cpp \
source/limage/limageqimage.cpp \
source/limage/limagetiff.cpp \
source/ltiff/ltiff.cpp \
source/util/buffer2d.cpp \
nutilapplication.cpp \
mainwindow.cpp \
node.cpp \
source/nauto.cpp \
source/ProcessManager/nutilprocess.cpp \
source/ProcessManager/processmanager.cpp \
source/util/downloadmanager.cpp \
source/util/lgraph.cpp \
source/util/area.cpp \
source/util/atlaslabel.cpp \
source/util/flat2d.cpp \
source/LBook/lbook.cpp \
source/LBook/lbookxlnt.cpp \
source/unittest.cpp \
source/util/neuroglancer.cpp \
source/util/nlimage.cpp \
source/util/lmessage.cpp \
source/util/lparameter.cpp \
source/util/shape.cpp \
source/ProcessManager/report.cpp \
source/ProcessManager/processitem.cpp \
source/ProcessManager/processmanagerpcounter.cpp \
source/ProcessManager/processmanagerfactory.cpp \
source/ProcessManager/processmanagertransform.cpp \
source/ProcessManager/processmanagerautocontrast.cpp \
source/dialogtiff.cpp \
source/updatethread.cpp \
source/IO/nifti.cpp \
source/ProcessManager/areafinder3d.cpp \
source/IO/pointcloud3d.cpp \
source/util/nlimagetiff.cpp \
source/IO/xmlanchor.cpp \
dialogsettings.cpp \
source/ProcessManager/processmanagertiffcreator.cpp \
source/LBook/lbookcsv.cpp \
source/LBook/lbookfactory.cpp \
source/util/spline.cpp \
source/util/updater.cpp \
source/util/util.cpp \
source/util/SimplexNoise.cpp
HEADERS += \
nutilapplication.h \
source/IO/nutiltemplate.h \
source/LBook/lbookhtml.h \
source/ProcessManager/processmanagerneuroglancer.h \
source/ProcessManager/processmanagerng.h \
source/ProcessManager/processmanagerresize.h \
source/Validator/nutilvalidator.h \
source/data.h \
source/dialoggeneratedata.h \
source/dialoghelp.h \
source/dialognewfile.h \
source/limage/lcolorlist.h \
source/limage/limage.h \
source/limage/limageqimage.h \
source/limage/limagetiff.h \
source/ltiff/ltiff.h \
source/util/buffer2d.h \
mainwindow.h \
node.h \
source/util/cinifile.h \
source/nauto.h \
source/ProcessManager/nutilprocess.h \
source/ProcessManager/processmanager.h \
source/util/counter.h \
source/util/downloadmanager.h \
source/util/lgraph.h \
source/util/area.h \
source/util/atlaslabel.h \
source/util/flat2d.h \
source/LBook/lbook.h \
source/LBook/lbookxlnt.h \
source/unittest.h \
source/util/neuroglancer.h \
source/util/nlimage.h \
source/util/lmessage.h \
source/util/lparameter.h \
source/util/random.h \
source/util/shape.h \
source/ProcessManager/report.h \
source/ProcessManager/processitem.h \
source/ProcessManager/processmanagerpcounter.h \
source/ProcessManager/processmanagerfactory.h \
source/ProcessManager/processmanagertransform.h \
source/ProcessManager/processmanagerautocontrast.h \
source/dialogtiff.h \
source/updatethread.h \
source/IO/nifti.h \
source/ProcessManager/areafinder3d.h \
source/IO/pointcloud3d.h \
source/util/nlimagetiff.h \
source/IO/xmlanchor.h \
dialogsettings.h \
source/util/cinifile.h \
source/ProcessManager/processmanagertiffcreator.h \
source/LBook/lbookcsv.h \
source/LBook/lbookfactory.h \
source/util/spline.h \
source/util/updater.h \
source/util/util.h \
source/util/SimplexNoise.h
FORMS += mainwindow.ui \
source/dialoggeneratedata.ui \
source/dialoghelp.ui \
source/dialognewfile.ui \
source/dialogtiff.ui \
dialogsettings.ui
#win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../tiff-4.0.9/libtiff/ -llibtiff
#else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../tiff-4.0.9/libtiff/ -llibtiffd
#else:unix: LIBS += -L$$PWD/../tiff-4.0.9/libtiff/ -llibtiff
#INCLUDEPATH += $$PWD/../tiff-4.0.9/libtiff
#DEPENDPATH += $$PWD/../tiff-4.0.9/libtiff
win32-msvc*{
unix|win32: LIBS += -L$$PWD/lib/ -llibtiff
INCLUDEPATH += $$PWD/lib/libtiff
INCLUDEPATH += $$PWD/lib
DEPENDPATH += $$PWD/lib/libtiff
# LIBS += -L$$PWD/lib/ -lxlnt
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/lib/ -lxlnt
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/lib/Debug/ -lxlntd
}
linux*{
LIBS += -ltiff
INCLUDEPATH += $$PWD/lib/libtiff
INCLUDEPATH += $$PWD/lib/
DEPENDPATH += $$PWD/lib/libtiff
LIBS += -L$$PWD/lib/ -lxlnt
}
#LELIB INCLUDES
# win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../LeLib/release/ -llelib
# else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../LeLib/debug/ -llelib
# else:symbian: LIBS += -llelib
#else:unix: LIBS += -L$$OUT_PWD/../LeLib/Release/ -lLeLib
# INCLUDEPATH += $$PWD/../lelib/
# DEPENDPATH += $$PWD/../lelib/
# win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lelib/release/lelib.lib
# else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../lelib/debug/lelib.lib
linux*{
QMAKE_CXXFLAGS += -fopenmp
QMAKE_CXXFLAGS += -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wno-comment -Wno-parentheses -Wno-delete-non-virtual-dtor -Wno-missing-noreturn
LIBS += -fopenmp
QMAKE_CXXFLAGS += -Ofast
# LIBS += -L$$PWD/libs/lua/ -llua -ldl
# linux:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../../lelib/Release/
# linux:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../../lelib/Debug/
# LIBS += -L$$OUT_PWD/../../lelib/Release/ -lLeLib
# LIBS += -L$$OUT_PWD/../../lelib/Debug/ -lLeLib
# LIBS += -lLeLib
}
# else:unix:!symbian: PRE_TARGETDEPS += $$OUT_PWD/../LeLib/Release/libLeLib.a
#LELIB INCLUDES ENDS
#win32:CONFIG(release, debug|release): LIBS += -L$$PWD/lib/libxl-3.8.1.0/lib64/ -llibxl
#else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/lib/libxl-3.8.1.0/lib64/ -llibxl
#else:unix: LIBS += -L$$PWD/lib/libxl-3.8.1.0/lib64/ -llibxl
#INCLUDEPATH += $$PWD/lib/libxl-3.8.1.0/include_cpp
#DEPENDPATH += $$PWD/lib/libxl-3.8.1.0/include_cpp
DISTFILES += \
Resources/text/quantifier.txt \
Resources/text/tiffcreator.txt
RESOURCES += \
resources.qrc