teacherServer.pro 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. QT += core gui
  2. QT += websockets
  3. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  4. CONFIG += c++17
  5. # You can make your code fail to compile if it uses deprecated APIs.
  6. # In order to do so, uncomment the following line.
  7. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  8. SOURCES += \
  9. appevent.cpp \
  10. examquestionpage.cpp \
  11. examtestpage.cpp \
  12. gradespage.cpp \
  13. main.cpp \
  14. mainwindow.cpp \
  15. settingspage.cpp \
  16. studentpage.cpp \
  17. tcontroller.cpp \
  18. tmodel.cpp \
  19. websocketserver.cpp
  20. HEADERS += \
  21. appevent.h \
  22. examquestionpage.h \
  23. examtestpage.h \
  24. gradespage.h \
  25. mainwindow.h \
  26. settingspage.h \
  27. studentpage.h \
  28. tcontroller.h \
  29. teachertr.h \
  30. tmodel.h \
  31. websocketserver.h
  32. FORMS +=
  33. include($$PWD/CPPWebFramework/CPPWebFramework.pri)
  34. include($$PWD/xlsx/qtxlsx.pri)
  35. include($$PWD/qtsingleapplication/qtsingleapplication.pri)
  36. CONFIG(debug, debug|release): {
  37. DESTDIR = $$PWD/../Time/bin64/server
  38. } else {
  39. DESTDIR = $$PWD/../Time/bin64out/server
  40. }
  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
  45. CONFIG += lrelease
  46. CONFIG += embed_translations
  47. TRANSLATIONS += teacherServer_zh_CN.ts
  48. include($$PWD/utils/utils.pri)
  49. include($$PWD/widgets/widgets.pri)
  50. DISTFILES += \
  51. test