diff --git a/gui/qt/bgslibrary_gui.pro b/gui/qt/bgslibrary_gui.pro index 7cf92375ecd36fa8c0f5e1299dcc437a085a46cb..442a57b4b89f5dc00ec383013f57701c6cbf879d 100644 --- a/gui/qt/bgslibrary_gui.pro +++ b/gui/qt/bgslibrary_gui.pro @@ -4,21 +4,79 @@ # #------------------------------------------------- -QT += core gui +QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = bgslibrary_gui TEMPLATE = app +message(Qt version: $$[QT_VERSION]) +message(Qt is installed in $$[QT_INSTALL_PREFIX]) +message(Qt resources can be found in the following locations:) +message(Documentation: $$[QT_INSTALL_DOCS]) +message(Header files: $$[QT_INSTALL_HEADERS]) +message(Libraries: $$[QT_INSTALL_LIBS]) +message(Binary files (executables): $$[QT_INSTALL_BINS]) +message(Plugins: $$[QT_INSTALL_PLUGINS]) +message(Data files: $$[QT_INSTALL_DATA]) +message(Translation files: $$[QT_INSTALL_TRANSLATIONS]) +message(Settings: $$[QT_INSTALL_SETTINGS]) +message(Examples: $$[QT_INSTALL_EXAMPLES]) +message(Demonstrations: $$[QT_INSTALL_DEMOS]) + +CONFIG += c++14 +#CONFIG += no_keywords # Python redefines some qt keywords +#CONFIG += console +CONFIG -= app_bundle +CONFIG += sdk_no_version_check # supress OS warning for 10.14 + # For Windows x64 + Visual Studio 2015 + OpenCV 4.1.1 -INCLUDEPATH += E:/OpenCV/opencv-4.1.1/build/include -Release:LIBS += -LE:/OpenCV/opencv-4.1.1/build/x64/vc14/lib -lopencv_world411 -Debug:LIBS += -LE:/OpenCV/opencv-4.1.1/build/x64/vc14/lib -lopencv_world411d +win32 { + message("Building for Windows") + INCLUDEPATH += E:/OpenCV/opencv-4.1.1/build/include + release { + LIBS += -LE:/OpenCV/opencv-4.1.1/build/x64/vc14/lib -lopencv_world411 + } + debug { + LIBS += -LE:/OpenCV/opencv-4.1.1/build/x64/vc14/lib -lopencv_world411d + } +} -# For Linux -# INCLUDEPATH += /usr/local/include/opencv -# LIBS += -L/usr/local/lib +# For Linux or MacOS +!win32 { + macx { + message("Building for MacOS") + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14 + } else { + message("Building for Unix/Linux") + } + INCLUDEPATH += /usr/local/include + INCLUDEPATH += /usr/local/include/opencv4 + LIBS += -L/usr/local/lib + #LIBS += -L/usr/local/Cellar/ffmpeg/3.3.3/lib + LIBS += -lopencv_core + LIBS += -lopencv_imgproc + LIBS += -lopencv_imgcodecs + LIBS += -lopencv_video + LIBS += -lopencv_videoio + LIBS += -lopencv_highgui + LIBS += -lopencv_features2d + #LIBS += -lopencv_ml + #LIBS += -lopencv_calib3d + #LIBS += -lopencv_objdetect + #LIBS += -lopencv_flann + #LIBS += -lopencv_contrib + #LIBS += -lopencv_legacy + #LIBS += -lavcodec + #LIBS += -lavformat + #LIBS += -lavutil + #LIBS += -lavdevice + #LIBS += -lavfilter + #LIBS += -lpostproc + #LIBS += -lswscale + #LIBS += -lswresample +} RESOURCES = application.qrc