basemain.pro 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. QT += core gui network network-private
  2. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  3. CONFIG += c++17
  4. # You can make your code fail to compile if it uses deprecated APIs.
  5. # In order to do so, uncomment the following line.
  6. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  7. include($$PWD/qtsingleapplication/qtsingleapplication.pri)
  8. SOURCES += \
  9. appevent.cpp \
  10. main.cpp \
  11. messagequeue.cpp \
  12. processmodel.cpp \
  13. processmonitor.cpp \
  14. processthread.cpp \
  15. thardware/thardware.cpp \
  16. updaterthread.cpp \
  17. worker.cpp
  18. # Default rules for deployment.
  19. qnx: target.path = /tmp/$${TARGET}/bin
  20. else: unix:!android: target.path = /opt/$${TARGET}/bin
  21. !isEmpty(target.path): INSTALLS += target
  22. HEADERS += \
  23. appevent.h \
  24. basemainTr.h \
  25. messagequeue.h \
  26. processmodel.h \
  27. processmonitor.h \
  28. processthread.h \
  29. thardware/thardware.h \
  30. updaterthread.h \
  31. worker.h
  32. include($$PWD/CPPWebFramework/CPPWebFramework.pri)
  33. include($$PWD/api/api.pri)
  34. DESTDIR = $$PWD/bin
  35. CONFIG(debug, debug|release) {
  36. TARGET = $$join(TARGET,,,d)
  37. }
  38. CONFIG += lrelease
  39. CONFIG += embed_translations
  40. TRANSLATIONS += basemain_zh_CN.ts