OpenCV_TestGUI.pro 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2019-12-18T22:17:29
  4. #
  5. #-------------------------------------------------
  6. QT += core gui
  7. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  8. TARGET = OpenCV_TestGUI
  9. TEMPLATE = app
  10. # The following define makes your compiler emit warnings if you use
  11. # any feature of Qt which has been marked as deprecated (the exact warnings
  12. # depend on your compiler). Please consult the documentation of the
  13. # deprecated API in order to know how to port your code away from it.
  14. DEFINES += QT_DEPRECATED_WARNINGS
  15. # You can also make your code fail to compile if you use deprecated APIs.
  16. # In order to do so, uncomment the following line.
  17. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  18. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  19. CONFIG += c++11
  20. SOURCES += \
  21. main.cpp \
  22. mainwindow.cpp
  23. HEADERS += \
  24. mainwindow.h
  25. FORMS += \
  26. mainwindow.ui
  27. INCLUDEPATH += $$(OPENCV_SDK_DIR)/include
  28. #LIBS += E:\Libs\opencv-build\bin\libopencv_core412.dll
  29. #LIBS += E:\Libs\opencv-build\bin\libopencv_highgui412.dll
  30. #LIBS += E:\Libs\opencv-build\bin\libopencv_imgcodecs412.dll
  31. #LIBS += E:\Libs\opencv-build\bin\libopencv_imgproc412.dll
  32. #LIBS += E:\Libs\opencv-build\bin\libopencv_features2d412.dll
  33. #LIBS += E:\Libs\opencv-build\bin\libopencv_calib3d412.dll
  34. LIBS += -L$$(OPENCV_SDK_DIR)/x86/mingw/lib \
  35. -lopencv_core412 \
  36. -lopencv_highgui412 \
  37. -lopencv_imgcodecs412 \
  38. -lopencv_imgproc412 \
  39. -lopencv_features2d412 \
  40. -lopencv_calib3d412
  41. # Default rules for deployment.
  42. qnx: target.path = /tmp/$${TARGET}/bin
  43. else: unix:!android: target.path = /opt/$${TARGET}/bin
  44. !isEmpty(target.path): INSTALLS += target