forked from utwente/parlevision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.pri
83 lines (71 loc) · 2.46 KB
/
common.pri
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
#Include path relative to where source is located
INCLUDEPATH += ../../include
#Library path relative to where source is located
#Do NOT use trailing slashes in the libdir, this will make the linker choke
QMAKE_LIBDIR += ../../libs
#Windows specific libraries, library paths and include paths
win32 {
## Windows common build here
CONFIG(debug, debug|release) {
LIBS += -lcv210d \
-lcxcore210d \
-lcvaux210d \
-lhighgui210d \
-lcxts210d \
-lml210d
QMAKE_LIBDIR += c:/develop/OpenCV-2.1.0/lib
QMAKE_LIBDIR += c:/develop/OpenCV-2.1.0/bin
LIBS += -Lc:/develop/OpenCV-2.1.0/bin
}
CONFIG(release, debug|release) {
LIBS += -lcv210 \
-lcxcore210 \
-lcvaux210 \
-lhighgui210 \
-lcxts210 \
-lml210
QMAKE_LIBDIR += c:/develop/OpenCV-2.1.0/lib
QMAKE_LIBDIR += c:/develop/OpenCV-2.1.0/bin
LIBS += -Lc:/develop/OpenCV-2.1.0/bin
}
INCLUDEPATH += c:/develop/OpenCV-2.1.0/include
!contains(QMAKE_HOST.arch, x86_64) {
message("x86 build")
## Windows x86 (32bit) specific build here
} else {
message("x86_64 build")
## Windows x64 (64bit) specific build here
}
}
#win32 {
# ## Windows common build here
# CONFIG(debug, debug|release) {
# LIBS += -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_objdetect -lopencv_ml
# QMAKE_LIBDIR += c:/develop/OpenCV-2.2.0/lib
# QMAKE_LIBDIR += c:/develop/OpenCV-2.2.0/bin
# LIBS += -Lc:/develop/OpenCV-2.2.0/bin
# }
# CONFIG(release, debug|release) {
# LIBS += -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_objdetect -lopencv_ml
# QMAKE_LIBDIR += c:/develop/OpenCV-2.2.0/lib
# QMAKE_LIBDIR += c:/develop/OpenCV-2.2.0/bin
# LIBS += -Lc:/develop/OpenCV-2.2.0/bin
# }
# INCLUDEPATH += c:/develop/OpenCV-2.2.0/include
#}
#Unix specific libraries
unix {
LIBS += -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_objdetect -lopencv_ml
#LIBS += -lcv \
# -lcxcore \
# -lcvaux \
# -lhighgui \
# #-lcxts \
# -lml
}
macx {
#QMAKE_LIBDIR += /opt/local/lib
QMAKE_LIBDIR += /usr/local/Cellar/opencv/2.2/lib/
#INCLUDEPATH += /opt/local/include/opencv
INCLUDEPATH += /usr/local/Cellar/opencv/2.2/include/opencv
}