summaryrefslogtreecommitdiffstats
path: root/src/mqtt/CMakeLists.txt
blob: ef8a33ee80cdddd92acd3fe91d7d467dcc2de1e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

#####################################################################
## Mqtt Module:
#####################################################################

qt_internal_add_module(Mqtt
    SOURCES
        qmqttauthenticationproperties.cpp qmqttauthenticationproperties.h
        qmqttclient.cpp qmqttclient.h qmqttclient_p.h
        qmqttconnection.cpp qmqttconnection_p.h
        qmqttconnectionproperties.cpp qmqttconnectionproperties.h qmqttconnectionproperties_p.h
        qmqttcontrolpacket.cpp qmqttcontrolpacket_p.h
        qmqttglobal.h qmqttglobal_p.h
        qmqttmessage.cpp qmqttmessage.h qmqttmessage_p.h
        qmqttpublishproperties.cpp qmqttpublishproperties.h qmqttpublishproperties_p.h
        qmqttsubscription.cpp qmqttsubscription.h qmqttsubscription_p.h
        qmqttsubscriptionproperties.cpp qmqttsubscriptionproperties.h
        qmqtttopicfilter.cpp qmqtttopicfilter.h
        qmqtttopicname.cpp qmqtttopicname.h
        qmqtttype.cpp qmqtttype.h
    LIBRARIES
        Qt::CorePrivate
    PUBLIC_LIBRARIES
        Qt::Core
        Qt::Network
    PRIVATE_MODULE_INTERFACE
        Qt::CorePrivate
)

qt_internal_extend_target(Mqtt
    CONDITION
        TARGET Qt::WebSockets
    DEFINES
        QT_MQTT_WITH_WEBSOCKETS
    PUBLIC_LIBRARIES
        Qt::WebSockets
    SOURCES
        transportLayers/mqtt_websocket_io_base.cpp
        transportLayers/mqtt_websocket_io_base_p.h
        transportLayers/mqtt_websocket_io.cpp
        transportLayers/mqtt_websocket_io_p.h
        transportLayers/mqtt_secure_websocket_io.cpp
        transportLayers/mqtt_secure_websocket_io_p.h
)

qt_internal_add_docs(Mqtt
    doc/qtmqtt.qdocconf
)