QT += core gui sql serialbus network greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++17 win32-msvc { QMAKE_CXXFLAGS += /utf-8 CONFIG(release, debug|release) { DESTDIR = $$PWD/bin HVG_DEPLOY_SCRIPT = $$shell_quote($$shell_path($$PWD/tools/Deploy-Bin.ps1)) HVG_PROJECT_ROOT = $$shell_quote($$shell_path($$PWD)) QMAKE_POST_LINK = powershell.exe -NoProfile -ExecutionPolicy Bypass -File $$HVG_DEPLOY_SCRIPT -ProjectRoot $$HVG_PROJECT_ROOT -RuntimeOnly } else { DESTDIR = $$PWD/bin/debug } } # The following define makes your compiler emit warnings if you use # any Qt feature that has been marked deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ config/configmanager.cpp \ db/databasemanager.cpp \ db/dbconfig.cpp \ main.cpp \ modbus/modbusaddress.cpp \ modbus/modbusconfig.cpp \ modbus/modbustcpmanager.cpp \ pages/dashboardpage.cpp \ pages/devicepage.cpp \ pages/logpage.cpp \ pages/orderpage.cpp \ pages/qualitypage.cpp \ pages/rackpage.cpp \ pages/squaretraybutton.cpp \ pages/uihelpers.cpp \ pages/visionpage.cpp \ repositories/logrepository.cpp \ repositories/orderrepository.cpp \ repositories/productionrepository.cpp \ repositories/qualityrepository.cpp \ repositories/trayrepository.cpp \ repositories/workpiecerepository.cpp \ services/deviceservice.cpp \ services/logservice.cpp \ services/orderservice.cpp \ services/productionservice.cpp \ services/productionworker.cpp \ services/qualityservice.cpp \ services/trayservice.cpp \ services/visiondllworker.cpp \ services/workpieceservice.cpp \ services/visionservice.cpp \ widget.cpp HEADERS += \ config/configmanager.h \ db/databasemanager.h \ db/dbconfig.h \ modbus/modbusaddress.h \ modbus/modbusconfig.h \ modbus/modbustcpmanager.h \ models/logrecord.h \ models/order.h \ models/qualityrecord.h \ models/tray.h \ models/workpiece.h \ models/visionresult.h \ pages/dashboardpage.h \ pages/devicepage.h \ pages/logpage.h \ pages/orderpage.h \ pages/qualitypage.h \ pages/rackpage.h \ pages/squaretraybutton.h \ pages/uihelpers.h \ pages/visionpage.h \ repositories/logrepository.h \ repositories/orderrepository.h \ repositories/productionrepository.h \ repositories/qualityrepository.h \ repositories/trayrepository.h \ repositories/workpiecerepository.h \ services/deviceservice.h \ services/logservice.h \ services/orderservice.h \ services/productionservice.h \ services/productionworker.h \ services/qualityservice.h \ services/trayservice.h \ services/visiondllworker.h \ services/workpieceservice.h \ services/visionservice.h \ third_party/hikvision/HikVisionGuidance.h \ third_party/hikvision/HikVisionGuidanceQt.h \ widget.h FORMS += \ pages/Test.ui \ pages/dashboardpage.ui \ pages/devicepage.ui \ pages/logpage.ui \ pages/orderpage.ui \ pages/rackpage.ui \ widget.ui RESOURCES += \ layout/layout.qrc DISTFILES += \ config.ini \ tools/Deploy-Bin.ps1 # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target