DataManagerMain.pro 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. HEADERS += \
  15. DataConsumer.h \
  16. DataManager.h \
  17. DataManagerProxy.h \
  18. DataSubscribe.h
  19. SOURCES += \
  20. DataConsumer.cpp \
  21. DataManager.cpp \
  22. DataManagerProxy.cpp \
  23. DataSubscribe.cpp \
  24. main.cpp
  25. HIREDIS_DIR =$$PWD/../thirdparty/hiredis
  26. HEADERS += $${HIREDIS_DIR}/include/hiredis/adapters/qt.h
  27. LIBS += -L$${HIREDIS_DIR}/lib -lhiredis
  28. #LIBS += ../thirdparty/hiredis/lib/libhiredis.a
  29. INCLUDEPATH += $${HIREDIS_DIR}/include
  30. INCLUDEPATH += $$PWD/../modules/RedisClient
  31. LIBS +=-L$$PWD/../bin/plugins -lRedisClient
  32. TRANSLATIONS += \
  33. DataManager_zh_CN.ts
  34. CONFIG += lrelease
  35. CONFIG += embed_translations
  36. # Default rules for deployment.
  37. qnx: target.path = /tmp/$${TARGET}/bin
  38. else: unix:!android: target.path = /opt/$${TARGET}/bin
  39. !isEmpty(target.path): INSTALLS += target
  40. unix{
  41. }
  42. else{
  43. DESTDIR = $$PWD/../bin/
  44. }