teacherServer.pro 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. # Default rules for deployment.
  52. qnx: target.path = /tmp/$${TARGET}/bin
  53. else: unix:!android: target.path = /opt/$${TARGET}/bin
  54. !isEmpty(target.path): INSTALLS += target
  55. CONFIG += lrelease
  56. CONFIG += embed_translations
  57. TRANSLATIONS += teacherServer_zh_CN.ts
  58. include($$PWD/utils/utils.pri)
  59. include($$PWD/widgets/widgets.pri)
  60. DISTFILES += \
  61. test