| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- QT += core gui
- QT += websockets
- greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
- CONFIG += c++17
- # 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 += \
- api/gradesapi.cpp \
- api/requestthreadpool.cpp \
- api/tapi.cpp \
- api/tloginapi.cpp \
- appevent.cpp \
- examquestionpage.cpp \
- examtestpage.cpp \
- gradespage.cpp \
- main.cpp \
- mainwindow.cpp \
- settingspage.cpp \
- studentpage.cpp \
- tcontroller.cpp \
- tlogin.cpp \
- tmodel.cpp \
- websocketserver.cpp
- HEADERS += \
- api/gradesapi.h \
- api/requestthreadpool.h \
- api/tapi.h \
- api/tloginapi.h \
- appevent.h \
- examquestionpage.h \
- examtestpage.h \
- gradespage.h \
- mainwindow.h \
- settingspage.h \
- studentpage.h \
- tcontroller.h \
- teachertr.h \
- tlogin.h \
- tmodel.h \
- websocketserver.h
- FORMS +=
- include($$PWD/CPPWebFramework/CPPWebFramework.pri)
- include($$PWD/xlsx/qtxlsx.pri)
- include($$PWD/qtsingleapplication/qtsingleapplication.pri)
- CONFIG(debug, debug|release): {
- DESTDIR = $$PWD/../Time/bin64/server
- } else {
- DESTDIR = $$PWD/../Time/bin64out/server
- }
- win32-msvc* {
- QMAKE_CXXFLAGS += /source-charset:utf-8 /execution-charset:utf-8
- }
- # Default rules for deployment.
- qnx: target.path = /tmp/$${TARGET}/bin
- else: unix:!android: target.path = /opt/$${TARGET}/bin
- !isEmpty(target.path): INSTALLS += target
- CONFIG += lrelease
- CONFIG += embed_translations
- TRANSLATIONS += teacherServer_zh_CN.ts
- include($$PWD/utils/utils.pri)
- include($$PWD/widgets/widgets.pri)
- DISTFILES += \
- test
|