QT += core gui serialport widgets serialbus charts sql network axcontainer multimedia greaterThan(QT_MAJOR_VERSION, 4): QT += widgets VERSION = 1.0.0 CONFIG += c++11 RC_ICONS = res\icon.ico TARGET = IIOT_RB include($$PWD/QXlsx/QXlsx.pri) # QXlsx源代码 INCLUDEPATH += $$PWD/QXlsx # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ SerialConfig.cpp \ databaseutils.cpp \ licensemanager.cpp \ main.cpp \ mainwindow.cpp \ passworddialog.cpp \ serialportmanager.cpp HEADERS += \ ExportThread.h \ SerialConfig.h \ databaseutils.h \ # hidapi-win/include/hidapi.h \ # hidapi-win/include/hidapi_winapi.h \ licensemanager.h \ mainwindow.h \ passworddialog.h \ serialportmanager.h FORMS += \ mainwindow.ui ## 设置 HIDAPI 库的路径 #HIDAPI_DIR = $$PWD/hidapi-win #win32 { # # x64 平台 # contains(QMAKE_HOST.arch, x86_64) { # LIBS += -L$$HIDAPI_DIR/x64 -lhidapi # } else { # LIBS += -L$$HIDAPI_DIR/x86 -lhidapi # } #} # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target RESOURCES += \ res.qrc SUBDIRS += \ QXlsx/QXlsx.pro DISTFILES += \ QXlsx/CMakeLists.txt \ QXlsx/QXlsx.pri \ QXlsx/cmake/modules/CPackConfig.cmake \ QXlsx/cmake/modules/qxlsx-config-version.cmake.in \ QXlsx/cmake/modules/qxlsx-config.cmake.in \