teacherServer.pro 1.5 KB

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