-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTomSeg.pro
More file actions
135 lines (104 loc) · 4.39 KB
/
Copy pathTomSeg.pro
File metadata and controls
135 lines (104 loc) · 4.39 KB
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
#-------------------------------------------------
#
# Project created by QtCreator 2016-09-13T21:42:36
#
#-------------------------------------------------
QT += core gui
# <Charts>
QT += charts
# </Charts>
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = TomSeg
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
myqgraphicsscene.cpp \
segmentation-manager/point.cpp \
segmentation-manager/region.cpp \
segmentation-manager/seed.cpp \
segmentation-manager/segmentors/proportional-region-growing.cpp \
segmentation-manager/segmentors/otsu-threshold.cpp \
segmentation-manager/segmentationmanager.cpp \
segmentation-manager/slice.cpp \
segmenterthread.cpp \
cliapplication.cpp \
segmentation-manager/differentiators/differentiator.cpp \
segmentation-manager/preprocessors/aligner.cpp \
segmentation-manager/exporter.cpp \
segmentation-manager/seedpropagater.cpp \
segmentation-manager/jsoncpp.cpp \
histogramview.cpp \
segmentation-manager/importer.cpp
HEADERS += mainwindow.h \
myqgraphicsscene.h \
segmentation-manager/point.h \
segmentation-manager/region.h \
segmentation-manager/seed.h \
segmentation-manager/segmentors/segmenter.h \
segmentation-manager/segmentors/proportional-region-growing.h \
segmentation-manager/segmentors/otsu-threshold.h \
segmentation-manager/segmentationmanager.h \
segmentation-manager/slice.h \
segmenterthread.h \
cliapplication.h \
segmentation-manager/differentiators/differentiator.h \
segmentation-manager/preprocessors/aligner.h \
segmentation-manager/exporter.h \
segmentation-manager/seedpropagater.h \
segmentation-manager/json/json.h \
segmentation-manager/json/json-forwards.h \
histogramview.h \
segmentation-manager/importer.h
FORMS += mainwindow.ui
# <OPENMP>
LIBS += /usr/local/lib/libiomp5.dylib
QMAKE_CXXFLAGS += -fopenmp
# </OPENMP>
# <OpenCV>
INCLUDEPATH += /usr/local/include/
LIBS += /usr/local/lib/libopencv_calib3d.dylib /usr/local/lib/libopencv_contrib.dylib /usr/local/lib/libopencv_core.dylib /usr/local/lib/libopencv_features2d.dylib /usr/local/lib/libopencv_flann.dylib /usr/local/lib/libopencv_gpu.dylib /usr/local/lib/libopencv_highgui.dylib /usr/local/lib/libopencv_imgproc.dylib /usr/local/lib/libopencv_legacy.dylib /usr/local/lib/libopencv_ml.dylib /usr/local/lib/libopencv_nonfree.dylib /usr/local/lib/libopencv_objdetect.dylib /usr/local/lib/libopencv_ocl.dylib /usr/local/lib/libopencv_photo.dylib /usr/local/lib/libopencv_stitching.dylib /usr/local/lib/libopencv_superres.dylib /usr/local/lib/libopencv_ts.a /usr/local/lib/libopencv_video.dylib /usr/local/lib/libopencv_videostab.dylib
# </OpenCV>
# <CUDA>
CUDA_SOURCES += \
segmentation-manager/segmentors/cuda-kernels.cu
CUDA_DIR = "/Developer/NVIDIA/CUDA-7.0"
SYSTEM_TYPE = 64 # '32' or '64', depending on your system
CUDA_ARCH = sm_21 # (tested with sm_30 on my comp) Type of CUDA architecture, for example 'compute_10', 'compute_11', 'sm_10'
NVCC_OPTIONS = --use_fast_math
INCLUDEPATH += $$CUDA_DIR/include
QMAKE_LIBDIR += $$CUDA_DIR/lib/
CUDA_OBJECTS_DIR = ./
CUDA_LIBS = -lcudart
CUDA_INC = $$join(INCLUDEPATH,'" -I"','-I"','"')
LIBS += $$CUDA_LIBS # <-- needed this
QMAKE_LFLAGS += -Wl,-rpath,$$CUDA_DIR/lib # <-- added this
NVCCFLAGS = -Xlinker -rpath,$$CUDA_DIR/lib # <-- and this
CONFIG(debug, debug|release) {
# Debug mode
cuda_d.input = CUDA_SOURCES
cuda_d.output = $$CUDA_OBJECTS_DIR/${QMAKE_FILE_BASE}_cuda.o
cuda_d.commands = $$CUDA_DIR/bin/nvcc -D_DEBUG $$NVCC_OPTIONS $$CUDA_INC $$NVCC_LIBS --machine $$SYSTEM_TYPE -arch=$$CUDA_ARCH -c -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME}
cuda_d.dependency_type = TYPE_C
QMAKE_EXTRA_COMPILERS += cuda_d
}
else {
cuda.input = CUDA_SOURCES
cuda.output = $$CUDA_OBJECTS_DIR/${QMAKE_FILE_BASE}_cuda.o
cuda.commands = $$CUDA_DIR/bin/nvcc $$NVCC_OPTIONS $$CUDA_INC $$NVCC_LIBS --machine $$SYSTEM_TYPE -arch=$$CUDA_ARCH -c -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME}
cuda.dependency_type = TYPE_C
QMAKE_EXTRA_COMPILERS += cuda
}
# </CUDA>
#<ProgramOptions_CLI>
LIBS += /usr/local/lib/libboost_program_options.dylib
#</ProgramOptions_CLI>
#<O3>
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O3
QMAKE_LFLAGS_RELEASE -= -O1
QMAKE_LFLAGS_RELEASE += -O3
#</O3>
RESOURCES += \
icons.qrc
DISTFILES += \
segmentation-manager/segmentors/cuda-kernels.cu