RedisSubscriber.pro 976 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. QT -= gui
  2. TEMPLATE = lib
  3. DEFINES += REDISSUBSCRIBER_LIBRARY
  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. INCLUDEPATH += ../../include
  9. HEADERS += \
  10. ../../include/LibraryLoader.h \
  11. ../../include/Publisher.h \
  12. Redis.h
  13. HIREDIS_DIR =$$PWD/../../thirdparty/hiredis
  14. HEADERS += $${HIREDIS_DIR}/include/hiredis/adapters/qt.h
  15. LIBS += -L$${HIREDIS_DIR}/lib -lhiredis
  16. #LIBS += ../thirdparty/hiredis/lib/libhiredis.a
  17. INCLUDEPATH += $${HIREDIS_DIR}/include
  18. SOURCES += \
  19. Redis.cpp \
  20. RedisSubscriber.cpp
  21. HEADERS += \
  22. RedisSubscriber_global.h \
  23. RedisSubscriber.h
  24. # Default rules for deployment.
  25. unix {
  26. target.path = /usr/lib
  27. }else{
  28. DESTDIR = $$PWD/../../bin/plugins
  29. }
  30. !isEmpty(target.path): INSTALLS += target