DBStorage.pro 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. QT -= gui
  2. QT += core sql
  3. TEMPLATE = lib
  4. DEFINES += DBSTORAGE_LIBRARY
  5. CONFIG += c++17
  6. # You can make your code fail to compile if it uses deprecated APIs.
  7. # In order to do so, uncomment the following line.
  8. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  9. INCLUDEPATH += ../../include
  10. HEADERS += ../../include/Client.h
  11. SOURCES += \
  12. DBStorage.cpp
  13. HEADERS += \
  14. DBStorage.h \
  15. DBStorage_global.h
  16. # TDENGINE_DIR =$$PWD/../../thirdparty/tdengine
  17. # LIBS += -L$${TDENGINE_DIR}/lib -ltaos
  18. # INCLUDEPATH += $${TDENGINE_DIR}/include
  19. # INCLUDEPATH += $$PWD/../../modules/TDengineClient
  20. # LIBS +=-L$$PWD/../../bin/plugins -lTDengineClient
  21. # HIREDIS_DIR =$$PWD/../../thirdparty/hiredis
  22. # HEADERS += $${HIREDIS_DIR}/include/hiredis/adapters/qt.h
  23. # LIBS += -L$${HIREDIS_DIR}/lib -lhiredis
  24. # #LIBS += ../thirdparty/hiredis/lib/libhiredis.a
  25. # INCLUDEPATH += $${HIREDIS_DIR}/include
  26. #QMQTT_DIR =$$PWD/../../thirdparty/qmqtt
  27. #LIBS += -L$${QMQTT_DIR}/lib -lQt5Qmqtt
  28. #INCLUDEPATH += $${QMQTT_DIR}/include
  29. #INCLUDEPATH += $$PWD/../../modules/MQTTClient
  30. #LIBS +=-L$$PWD/../../bin/plugins -lMQTTClient
  31. # LIBS += -L$${MYSQL_HOME}/lib -llibmysql
  32. # INCLUDEPATH += $${MYSQL_HOME}/include
  33. # Default rules for deployment.
  34. unix {
  35. target.path = /usr/lib
  36. }else{
  37. DESTDIR = $$PWD/../../bin/plugins
  38. }
  39. !isEmpty(target.path): INSTALLS += target