teacherServer.pro 1.7 KB

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