2018-12-29 00:46:47 +08:00
|
|
|
# source code for this simple demo
|
2019-06-21 04:24:47 +08:00
|
|
|
SOURCES = imageplot_opencv.cpp
|
2018-12-29 00:46:47 +08:00
|
|
|
|
|
|
|
# configure Qt
|
2019-01-26 20:00:40 +08:00
|
|
|
CONFIG += link_prl qt
|
2018-12-29 00:46:47 +08:00
|
|
|
QT += core gui xml svg
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
|
|
|
|
|
|
|
|
# output executable name
|
2019-06-21 04:24:47 +08:00
|
|
|
TARGET = imageplot_opencv
|
2018-12-29 00:46:47 +08:00
|
|
|
|
2019-02-08 00:24:46 +08:00
|
|
|
|
2019-02-10 05:17:01 +08:00
|
|
|
# link agains OpenCV-3.4.1
|
|
|
|
#INCLUDEPATH += $$PWD/../../../OpenCV-3.4.1/include/
|
|
|
|
#LIBS += -L$$PWD/../../../OpenCV-3.4.1/bin/ -llibopencv_core341 -llibopencv_imgcodecs341
|
|
|
|
#opencvdlls.files=$$PWD/../../../OpenCV-3.4.1/bin/*.dll
|
|
|
|
#opencvdlls.path=$$OUT_PWD
|
2018-12-29 00:46:47 +08:00
|
|
|
|
2019-02-10 05:17:01 +08:00
|
|
|
# link agains OpenCV-4
|
|
|
|
INCLUDEPATH += $$PWD/../../../OpenCV-4.0.1/include/
|
|
|
|
LIBS += -L$$PWD/../../../OpenCV-4.0.1/x64/mingw/bin -L$$PWD/../../../OpenCV-4.0.1/x64/mingw/lib -llibopencv_core400.dll -llibopencv_imgcodecs400.dll
|
|
|
|
opencvdlls.files=$$PWD/../../../OpenCV-4.0.1/x64/mingw/bin/*.dll
|
|
|
|
opencvdlls.path=$$OUT_PWD
|
2018-12-29 00:46:47 +08:00
|
|
|
|
2019-02-10 05:17:01 +08:00
|
|
|
INCLUDEPATH+=../../lib
|
2018-12-29 00:46:47 +08:00
|
|
|
|
|
|
|
CONFIG (debug, debug|release) {
|
2019-06-21 04:24:47 +08:00
|
|
|
LIBS += -L../../qmake/staticlib/jkqtplotterlib/debug -ljkqtplotterlib_debug
|
2018-12-29 00:46:47 +08:00
|
|
|
} else {
|
2019-06-21 04:24:47 +08:00
|
|
|
LIBS += -L../../qmake/staticlib/jkqtplotterlib/release -ljkqtplotterlib
|
2018-12-29 00:46:47 +08:00
|
|
|
}
|
2019-02-10 05:17:01 +08:00
|
|
|
message("LIBS = $$LIBS")
|
|
|
|
|
|
|
|
INSTALLS += opencvdlls
|
2019-05-30 17:19:56 +08:00
|
|
|
|
|
|
|
win32-msvc*: DEFINES += _USE_MATH_DEFINES
|
|
|
|
win32-msvc*: DEFINES += NOMINMAX
|