teacherServer.pro 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. api/gradesapi.cpp \
  10. api/tapi.cpp \
  11. api/tloginapi.cpp \
  12. appevent.cpp \
  13. examquestionpage.cpp \
  14. examtestpage.cpp \
  15. gradespage.cpp \
  16. main.cpp \
  17. mainwindow.cpp \
  18. settingspage.cpp \
  19. studentpage.cpp \
  20. tcontroller.cpp \
  21. tlogin.cpp \
  22. tmodel.cpp \
  23. websocketserver.cpp
  24. HEADERS += \
  25. api/gradesapi.h \
  26. api/tapi.h \
  27. api/tloginapi.h \
  28. appevent.h \
  29. examquestionpage.h \
  30. examtestpage.h \
  31. gradespage.h \
  32. mainwindow.h \
  33. settingspage.h \
  34. studentpage.h \
  35. tcontroller.h \
  36. teachertr.h \
  37. tlogin.h \
  38. tmodel.h \
  39. websocketserver.h
  40. FORMS +=
  41. include($$PWD/CPPWebFramework/CPPWebFramework.pri)
  42. include($$PWD/xlsx/qtxlsx.pri)
  43. include($$PWD/qtsingleapplication/qtsingleapplication.pri)
  44. CONFIG(debug, debug|release): {
  45. DESTDIR = $$PWD/../Time/bin64/server
  46. } else {
  47. DESTDIR = $$PWD/../Time/bin64out/server
  48. }
  49. # Default rules for deployment.
  50. qnx: target.path = /tmp/$${TARGET}/bin
  51. else: unix:!android: target.path = /opt/$${TARGET}/bin
  52. !isEmpty(target.path): INSTALLS += target
  53. CONFIG += lrelease
  54. CONFIG += embed_translations
  55. TRANSLATIONS += teacherServer_zh_CN.ts
  56. include($$PWD/utils/utils.pri)
  57. include($$PWD/widgets/widgets.pri)
  58. DISTFILES += \
  59. test