DataManagerMain.pro 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. QT = core
  2. CONFIG += c++17 cmdline
  3. # You can make your code fail to compile if it uses deprecated APIs.
  4. # In order to do so, uncomment the following line.
  5. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  6. INCLUDEPATH += ../include/
  7. HEADERS += \
  8. ../include/BaseModule.h \
  9. ../include/Define.h \
  10. ../include/JobModule.h \
  11. ../include/LibraryLoader.h \
  12. ../include/RunnableModule.h \
  13. ../include/Publisher.h \
  14. Config.h
  15. HEADERS += \
  16. DataConsumer.h \
  17. DataManager.h \
  18. DataManagerProxy.h \
  19. DataSubscribe.h
  20. SOURCES += \
  21. Config.cpp \
  22. DataConsumer.cpp \
  23. DataManager.cpp \
  24. DataManagerProxy.cpp \
  25. DataSubscribe.cpp \
  26. main.cpp
  27. HIREDIS_DIR =$$PWD/../thirdparty/hiredis
  28. HEADERS += $${HIREDIS_DIR}/include/hiredis/adapters/qt.h
  29. LIBS += -L$${HIREDIS_DIR}/lib -lhiredis
  30. #LIBS += ../thirdparty/hiredis/lib/libhiredis.a
  31. INCLUDEPATH += $${HIREDIS_DIR}/include
  32. INCLUDEPATH += $$PWD/../modules/RedisClient
  33. LIBS +=-L$$PWD/../bin/plugins -lRedisClient
  34. TRANSLATIONS += \
  35. DataManager_zh_CN.ts
  36. CONFIG += lrelease
  37. CONFIG += embed_translations
  38. # Default rules for deployment.
  39. qnx: target.path = /tmp/$${TARGET}/bin
  40. else: unix:!android: target.path = /opt/$${TARGET}/bin
  41. !isEmpty(target.path): INSTALLS += target
  42. unix{
  43. }
  44. else{
  45. DESTDIR = $$PWD/../bin/
  46. }