-
Notifications
You must be signed in to change notification settings - Fork 8
/
KilobotArena.pro
152 lines (124 loc) · 3.13 KB
/
KilobotArena.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
#-------------------------------------------------
#
# Project created by QtCreator 2016-10-04T15:07:46
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = KilobotArena
TEMPLATE = app
# switch between OpenCV2 and 3
CONFIG += use_opencv3
QMAKE_CXXFLAGS += -std=c++11
SOURCES += main.cpp\
mainwindow.cpp \
clicksignalqlabel.cpp \
dragzoomqlabel.cpp \
kilobottracker.cpp \
kilobot.cpp \
kilobotoverheadcontroller.cpp \
ohc/calibrate.cpp \
ohc/intelhex.cpp \
ohc/serialconn.cpp \
ohc/serialwin.cpp \
kilobotidassignment.cpp \
kilobotcalibrate.cpp \
kilobotcalibrateenv.cpp
HEADERS += mainwindow.h \
clicksignalqlabel.h \
dragzoomqlabel.h \
kilobottracker.h \
kilobot.h \
kilobotoverheadcontroller.h \
ohc/calibrate.h \
ohc/intelhex.h \
ohc/packet.h \
ohc/serialconn.h \
ohc/serialwin.h \
kilobotenvironment.h \
kilobotexperiment.h \
userthread.h \
kilobotidassignment.h \
kilobotcalibrate.h \
kilobotcalibrateenv.h
FORMS += mainwindow.ui
linux {
!use_opencv3 {
# use pkgconfig instead
CONFIG += link_pkgconfig
PKGCONFIG += opencv
}KilobotArena.pro
use_opencv3 {
DEFINES += USE_OPENCV3
# OpenCV 3
#INCLUDEPATH += /opt/local/include/
#LIBS += -L/opt/local/lib \
INCLUDEPATH += /usr/local/include/
LIBS += -L/usr/local/lib/ \
-lopencv_ocl \
-lopencv_core \
-lopencv_imgproc \
-lopencv_features2d\
-lopencv_highgui\
# -lopencv_contrib\
-lopencv_calib3d\
-lopencv_objdetect\
-lopencv_photo\
-lopencv_stitching\
-lopencv_flann\
# -lopencv_gpu \
# -lopencv_legacy \
-lopencv_ml \
-lopencv_objdetect \
# -lopencv_ocl \
-lopencv_photo \
-lopencv_stitching \
-lopencv_superres \
# -lopencv_ts \
-lopencv_video \
-lopencv_videostab \
-lopencv_videoio \
-lopencv_imgcodecs \
-lz
# CUDA
LIBS += -lopencv_cudawarping \
-lopencv_cudafeatures2d \
-lopencv_cudaimgproc \
-lopencv_cudafilters \
-lopencv_cudaarithm
}
#-lusb
}
macx {
# Change libstdc++ to C++2011 for OpenCV
CONFIG += c++11
# OpenCV library setup for OSX
INCLUDEPATH += /usr/local/include
LIBS += -L/usr/local/lib \
-lopencv_core \
-lopencv_imgproc \
-lopencv_features2d\
-lopencv_highgui\
-lopencv_contrib\
-lopencv_calib3d\
-lopencv_objdetect\
-lopencv_photo\
-lopencv_stitching\
-lopencv_flann\
-lopencv_nonfree\
-lz
# OpenCV 3rd party libraries
LIBS += /usr/local/share/OpenCV/3rdparty/lib/liblibjpeg.a
LIBS += /usr/local/share/OpenCV/3rdparty/lib/liblibpng.a
LIBS += /usr/local/share/OpenCV/3rdparty/lib/liblibtiff.a
LIBS += /usr/local/share/OpenCV/3rdparty/lib/liblibjasper.a
LIBS += /usr/local/share/OpenCV/3rdparty/lib/libIlmImf.a
# Required for OpenCV
LIBS += -framework AppKit
LIBS += -framework QtKit
LIBS += -framework CoreMedia
LIBS += -framework CoreVideo
LIBS += -framework AVFoundation
}
RESOURCES += \
ressources.qrc