MQTTClient.pro 762 B

12345678910111213141516171819202122232425262728293031323334353637
  1. QT -= gui
  2. QT += core network
  3. TEMPLATE = lib
  4. DEFINES += MQTTCLIENT_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 += \
  11. MQTTClient.h
  12. QMQTT_DIR =$$PWD/../../thirdparty/qmqtt
  13. LIBS += -L$${QMQTT_DIR}/lib -lQt5Qmqtt
  14. INCLUDEPATH += $${QMQTT_DIR}/include
  15. SOURCES += \
  16. MQTTClient.cpp
  17. HEADERS += \
  18. MQTTClient_global.h
  19. # Default rules for deployment.
  20. unix {
  21. target.path = /usr/lib
  22. }else{
  23. DESTDIR = $$PWD/../../bin/plugins
  24. }
  25. !isEmpty(target.path): INSTALLS += target