!isEmpty(QBLUETOOTHLEUART_LIB):error("QBluetoothLeUart.pri already included") QBLUETOOTHLEUART_LIB = 1 QBluetoothLeUart_QML { QT += qml quickcontrols2 DEFINES += QBluetoothLeUart_QML } QT += core bluetooth TEMPLATE = lib CONFIG += staticlib CONFIG += c++11 # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ qbluetoothleuart.cpp \ qbluetoothleuartdevice.cpp HEADERS += \ qbluetoothleuart.h \ qbluetoothleuartdevice.h # Default rules for deployment. unix { target.path = $$[QT_INSTALL_PLUGINS]/generic } !isEmpty(target.path): INSTALLS += target