-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathDeepLabel.pro
211 lines (187 loc) · 5.67 KB
/
DeepLabel.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
#-------------------------------------------------
#
# Project created by QtCreator 2017-10-04T17:31:00
#
#-------------------------------------------------
QT += core gui sql testlib concurrent xml
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = deeplabel
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# 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
macx{
message("Mac")
#PKG_CONFIG = /usr/local/bin/pkg-config
CONFIG += c++17
# Build without FFMPEG unless you want a lot of pain later
CONFIG += link_pkgconfig
PKGCONFIG += protobuf
# If you use pkg-config, *everything* gets linked. Wasteful.
INCLUDEPATH += /usr/local/include/opencv4
LIBS += -L/usr/local/opt/opencv/lib/
LIBS += -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_imgcodecs -lopencv_tracking -lopencv_video -lopencv_videoio -lopencv_dnn
}
unix:!macx{
message("Linux")
#CONFIG += link_pkgconfig
#PKGCONFIG += opencv4
CONFIG += c++17
INCLUDEPATH += /usr/local/include/opencv4
LIBS += -L/usr/local/lib -lprotobuf -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_imgcodecs -lopencv_tracking -lopencv_video -lopencv_videoio -lopencv_dnn
}
win32{
message("Windows")
DEFINES += PROTOBUF_USE_DLLS
defined(WITH_CUDA){
message("Building with CUDA")
CONFIG += WITH_CUDA
INCLUDEPATH += "$$_PRO_FILE_PWD_/opencv/build_cuda/include"
LIBS += -L"$$_PRO_FILE_PWD_/opencv/build_cuda/x64/vc16/lib"
}else{
INCLUDEPATH += "$$_PRO_FILE_PWD_/opencv/build/include"
LIBS += -L"$$_PRO_FILE_PWD_/opencv/build/x64/vc16/lib"
}
INCLUDEPATH += "$$_PRO_FILE_PWD_/protobuf/include"
LIBS += -L"$$_PRO_FILE_PWD_/protobuf/lib"
#QMAKE_CXXFLAGS += "/std:c++17 /permissive-"
CONFIG(debug, debug|release) {
LIBS += -lopencv_world453d -llibprotobufd
}else{
LIBS += -lopencv_world453 -llibprotobuf
}
}
# For building in a single folder
CONFIG(debug, debug|release) {
CONFIG(WITH_CUDA){
DESTDIR = debug_cuda
}else{
DESTDIR = debug
}
OBJECTS_DIR = .obj_debug
MOC_DIR = .moc_debug
}else {
DEFINES += QT_NO_DEBUG_OUTPUT
CONFIG(WITH_CUDA){
message("Building with CUDA")
DESTDIR = release_cuda
}else{
DESTDIR = release
}
OBJECTS_DIR = .obj
MOC_DIR = .moc
}
INCLUDEPATH += "$$_PRO_FILE_PWD_/src"
VPATH = "$$_PRO_FILE_PWD_/src"
SOURCES += \
src/crc32.cpp \
src/main.cpp \
src/mainwindow.cpp \
src/labelproject.cpp \
src/imagelabel.cpp \
src/kittiexporter.cpp \
src/darknetexporter.cpp \
src/exportdialog.cpp \
src/multitracker.cpp \
src/baseexporter.cpp \
src/baseimporter.cpp \
src/birdsaiimporter.cpp \
src/cliparser.cpp \
src/cocoexporter.cpp \
src/darknetimporter.cpp \
src/pascalvocimporter.cpp \
src/proto/example.pb.cc \
src/proto/feature.pb.cc \
src/gcpexporter.cpp \
src/imagedisplay.cpp \
src/importdialog.cpp \
src/motimporter.cpp \
src/pascalvocexporter.cpp \
src/detection/detectoropencv.cpp \
src/detection/detectorsetupdialog.cpp \
src/refinerangedialog.cpp \
src/cocoimporter.cpp \
src/tfrecordexporter.cpp \
src/tfrecordimporter.cpp \
src/videoexporter.cpp
HEADERS += \
src/cliprogressbar.h \
src/crc32.h \
src/importer.h \
src/mainwindow.h \
src/labelproject.h \
src/imagelabel.h \
src/boundingbox.h \
src/kittiexporter.h \
src/darknetexporter.h \
src/exportdialog.h \
src/multitracker.h \
src/baseexporter.h \
src/baseimporter.h \
src/birdsaiimporter.h \
src/cliparser.h \
src/cocoexporter.h \
src/darknetimporter.h \
src/exporter.h \
src/gcpexporter.h \
src/imagedisplay.h \
src/importdialog.h \
src/motimporter.h \
src/pascalvocexporter.h \
src/detection/detectoropencv.h \
src/detection/detectorsetupdialog.h \
src/pascalvocimporter.h \
src/proto/example.pb.h \
src/proto/feature.pb.h \
src/refinerangedialog.h \
src/cocoimporter.h \
src/tfrecordexporter.h \
src/tfrecordimporter.h \
src/videoexporter.h
FORMS += \
src/importdialog.ui \
src/mainwindow.ui \
src/exportdialog.ui \
src/imagedisplay.ui \
detection/detectorsetupdialog.ui \
src/refinerangedialog.ui
include(QtAwesome/QtAwesome/QtAwesome.pri)
# Deploy apps in OS X and Windows
isEmpty(TARGET_EXT) {
win32 {
TARGET_CUSTOM_EXT = .exe
}
macx {
TARGET_CUSTOM_EXT = .app
}
} else {
TARGET_CUSTOM_EXT = $${TARGET_EXT}
}
CONFIG( debug, debug|release ) {
# debug
DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/debug/$${TARGET}$${TARGET_CUSTOM_EXT}))
} else {
# release
DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/release/$${TARGET}$${TARGET_CUSTOM_EXT}))
}
win32 {
DEPLOY_COMMAND = windeployqt.exe
}
macx {
DEPLOY_COMMAND = macdeployqt
}
# # Uncomment the following line to help debug the deploy command when running qmake
# warning($${DEPLOY_COMMAND} $${DEPLOY_TARGET})
# Use += instead of = if you use multiple QMAKE_POST_LINKs
win32 {
QMAKE_POST_LINK = $${DEPLOY_COMMAND} $${DEPLOY_TARGET}
}
macx {
QMAKE_POST_LINK = $${DEPLOY_COMMAND} $${DEPLOY_TARGET}
}