-
Notifications
You must be signed in to change notification settings - Fork 1
/
opencv.pri
51 lines (47 loc) · 1.71 KB
/
opencv.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
DEFINES += OPENCV_LIB
DEFINES += DEBUG_TOOLS_ENABLED
windows {
TEST_OPENCV_INCLUDE_PATH = $$(OPENCV_INCLUDE_PATH)
isEmpty(TEST_OPENCV_INCLUDE_PATH) {
error("Variable \"OPENCV_INCLUDE_PATH\" is not set")
} else {
TEST_OPENCV_LIB_PATH = $$(OPENCV_LIB_PATH)
isEmpty(TEST_OPENCV_LIB_PATH) {
error("Variable \"OPENCV_LIB_PATH\" is not set")
} else {
INCLUDEPATH += $$(OPENCV_INCLUDE_PATH)
DEPENDPATH += $$(OPENCV_INCLUDE_PATH)
CONFIG(debug, debug|release) {
OPENCV_VERSION=410d
} else {
OPENCV_VERSION=410
}
# LIBS += -L$$(OPENCV_LIB_PATH) \
# -lopencv_core$$OPENCV_VERSION \
# -lopencv_imgproc$$OPENCV_VERSION \
# -lopencv_video$$OPENCV_VERSION
# contains(DEFINES, DEBUG_TOOLS_ENABLED) {
# LIBS += -L$$(OPENCV_LIB_PATH) \
# -lopencv_highgui$$OPENCV_VERSION \
# -lopencv_imgcodecs$$OPENCV_VERSION
# }
LIBS += -L$$(OPENCV_LIB_PATH) -lopencv_world$$OPENCV_VERSION
}
}
} else: android {
TEST_OPENCV_INCLUDE_PATH = $$(OPENCV_INCLUDE_PATH)
isEmpty(TEST_OPENCV_INCLUDE_PATH) {
error("Variable \"OPENCV_INCLUDE_PATH\" is not set")
} else {
TEST_OPENCV_LIB_PATH = $$(OPENCV_LIB_PATH)
isEmpty(TEST_OPENCV_LIB_PATH) {
error("Variable \"OPENCV_LIB_PATH\" is not set")
} else {
INCLUDEPATH += $$(OPENCV_INCLUDE_PATH)
DEPENDPATH += $$(OPENCV_INCLUDE_PATH)
LIBS += -L$$(OPENCV_LIB_PATH) -lopencv_java4
}
}
} else {
error("OpenCV not included")
}