RedisClient.pro 860 B

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