summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@qt.io>2019-08-29 10:42:00 +0200
committerMaurice Kalinowski <maurice.kalinowski@qt.io>2019-09-02 07:06:48 +0000
commit4e5af443ef542e191a98b456add6d8e89dc2d408 (patch)
treea2ed4ead3bbf407829623ea2a6f270e3d732432a
parentb3b75fd0c5b2d7454009bd0bc878632475d7b131 (diff)
Add initial support for cmake
Change-Id: I40153b0f225d67afebfaf3ff0b1c43a9c2f69b8c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--CMakeLists.txt14
-rw-r--r--examples/CMakeLists.txt12
-rw-r--r--examples/mqtt/CMakeLists.txt14
-rw-r--r--examples/mqtt/consolepubsub/CMakeLists.txt62
-rw-r--r--examples/mqtt/quickpublication/CMakeLists.txt52
-rw-r--r--examples/mqtt/quicksubscription/CMakeLists.txt52
-rw-r--r--examples/mqtt/simpleclient/CMakeLists.txt39
-rw-r--r--examples/mqtt/subscriptions/CMakeLists.txt40
-rw-r--r--examples/mqtt/websocketsubscription/CMakeLists.txt36
-rw-r--r--src/CMakeLists.txt4
-rw-r--r--src/mqtt/CMakeLists.txt39
-rw-r--r--tests/CMakeLists.txt10
-rw-r--r--tests/auto/CMakeLists.txt14
-rw-r--r--tests/auto/conformance/CMakeLists.txt21
-rw-r--r--tests/auto/qmqttclient/CMakeLists.txt21
-rw-r--r--tests/auto/qmqttconnectionproperties/CMakeLists.txt21
-rw-r--r--tests/auto/qmqttcontrolpacket/CMakeLists.txt18
-rw-r--r--tests/auto/qmqttlastwillproperties/CMakeLists.txt21
-rw-r--r--tests/auto/qmqttpublishproperties/CMakeLists.txt21
-rw-r--r--tests/auto/qmqttsubscription/CMakeLists.txt21
-rw-r--r--tests/auto/qmqttsubscriptionproperties/CMakeLists.txt21
-rw-r--r--tests/auto/qmqtttopicfilter/CMakeLists.txt17
-rw-r--r--tests/auto/qmqtttopicname/CMakeLists.txt17
-rw-r--r--tests/manual/sslconfiguration/CMakeLists.txt27
24 files changed, 614 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..7a0b328
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,14 @@
+cmake_minimum_required(VERSION 3.15.0)
+
+project(QtMqtt
+ VERSION 6.0.0
+ DESCRIPTION "Qt Mqtt Libraries"
+ HOMEPAGE_URL "https://qt.io/"
+ LANGUAGES CXX C
+)
+
+find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Network)
+find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Quick WebSockets # For tests
+ Gui Widgets) # For examples
+qt_build_repo()
+
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644
index 0000000..5ea684e
--- /dev/null
+++ b/examples/CMakeLists.txt
@@ -0,0 +1,12 @@
+# special case begin
+qt_examples_build_begin()
+
+# special case end
+
+# Generated from examples.pro.
+
+add_subdirectory(mqtt)
+
+# special case begin
+qt_examples_build_end()
+# special case end
diff --git a/examples/mqtt/CMakeLists.txt b/examples/mqtt/CMakeLists.txt
new file mode 100644
index 0000000..d4bfa5c
--- /dev/null
+++ b/examples/mqtt/CMakeLists.txt
@@ -0,0 +1,14 @@
+# Generated from mqtt.pro.
+
+add_subdirectory(consolepubsub)
+if(TARGET Qt::Gui)
+ add_subdirectory(simpleclient)
+ add_subdirectory(subscriptions)
+endif()
+if(TARGET Qt::Quick)
+ add_subdirectory(quicksubscription)
+ add_subdirectory(quickpublication)
+endif()
+if(TARGET Qt::WebSockets)
+ add_subdirectory(websocketsubscription)
+endif()
diff --git a/examples/mqtt/consolepubsub/CMakeLists.txt b/examples/mqtt/consolepubsub/CMakeLists.txt
new file mode 100644
index 0000000..f94389a
--- /dev/null
+++ b/examples/mqtt/consolepubsub/CMakeLists.txt
@@ -0,0 +1,62 @@
+# Generated from consolepubsub.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(qtmqtt_pub LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples")
+
+find_package(Qt6 COMPONENTS Mqtt)
+
+add_executable(qtmqtt_pub
+ configuration.h
+ main_pub.cpp
+)
+target_compile_definitions(qtmqtt_pub PUBLIC
+ QT_DEPRECATED_WARNINGS
+)
+target_link_libraries(qtmqtt_pub PUBLIC
+ # Remove: gui
+ Qt::Mqtt
+)
+
+install(TARGETS qtmqtt_pub
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+cmake_minimum_required(VERSION 3.14)
+project(qtmqtt_sub LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples")
+
+find_package(Qt6 COMPONENTS Mqtt)
+
+add_executable(qtmqtt_sub
+ configuration.h
+ main_sub.cpp
+)
+target_compile_definitions(qtmqtt_sub PUBLIC
+ QT_DEPRECATED_WARNINGS
+)
+target_link_libraries(qtmqtt_sub PUBLIC
+ # Remove: gui
+ Qt::Mqtt
+)
+
+install(TARGETS qtmqtt_sub
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/mqtt/quickpublication/CMakeLists.txt b/examples/mqtt/quickpublication/CMakeLists.txt
new file mode 100644
index 0000000..5b571cc
--- /dev/null
+++ b/examples/mqtt/quickpublication/CMakeLists.txt
@@ -0,0 +1,52 @@
+# Generated from quickpublication.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(quickpublication LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS Mqtt)
+
+add_qt_gui_executable(quickpublication
+ main.cpp
+ qmlmqttclient.cpp qmlmqttclient.h
+)
+target_compile_definitions(quickpublication PUBLIC
+ QT_DEPRECATED_WARNINGS
+)
+target_link_libraries(quickpublication PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Mqtt
+ Qt::Qml
+ Qt::Quick
+)
+
+# Resources:
+set(qml_resource_files
+ "main.qml"
+)
+
+QT6_ADD_RESOURCES(quickpublication "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+
+
+install(TARGETS quickpublication
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/mqtt/quicksubscription/CMakeLists.txt b/examples/mqtt/quicksubscription/CMakeLists.txt
new file mode 100644
index 0000000..910eedd
--- /dev/null
+++ b/examples/mqtt/quicksubscription/CMakeLists.txt
@@ -0,0 +1,52 @@
+# Generated from quicksubscription.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(quicksubscription LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS Mqtt)
+
+add_qt_gui_executable(quicksubscription
+ main.cpp
+ qmlmqttclient.cpp qmlmqttclient.h
+)
+target_compile_definitions(quicksubscription PUBLIC
+ QT_DEPRECATED_WARNINGS
+)
+target_link_libraries(quicksubscription PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Mqtt
+ Qt::Qml
+ Qt::Quick
+)
+
+# Resources:
+set(qml_resource_files
+ "main.qml"
+)
+
+QT6_ADD_RESOURCES(quicksubscription "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+
+
+install(TARGETS quicksubscription
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/mqtt/simpleclient/CMakeLists.txt b/examples/mqtt/simpleclient/CMakeLists.txt
new file mode 100644
index 0000000..5fbdf76
--- /dev/null
+++ b/examples/mqtt/simpleclient/CMakeLists.txt
@@ -0,0 +1,39 @@
+# Generated from simpleclient.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(simplemqttclient LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Network)
+find_package(Qt6 COMPONENTS Mqtt)
+find_package(Qt6 COMPONENTS Widgets) # special case
+
+add_qt_gui_executable(simplemqttclient
+ main.cpp
+ mainwindow.cpp mainwindow.h mainwindow.ui
+)
+target_compile_definitions(simplemqttclient PUBLIC
+ QT_DEPRECATED_WARNINGS
+)
+target_link_libraries(simplemqttclient PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Mqtt
+ Qt::Network
+)
+target_link_libraries(simplemqttclient PUBLIC Qt::Widgets) # special case
+
+install(TARGETS simplemqttclient
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/mqtt/subscriptions/CMakeLists.txt b/examples/mqtt/subscriptions/CMakeLists.txt
new file mode 100644
index 0000000..c8aa8ac
--- /dev/null
+++ b/examples/mqtt/subscriptions/CMakeLists.txt
@@ -0,0 +1,40 @@
+# Generated from subscriptions.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(mqttsubscriptions LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Network)
+find_package(Qt6 COMPONENTS Widgets)
+find_package(Qt6 COMPONENTS Mqtt)
+
+add_qt_gui_executable(mqttsubscriptions
+ main.cpp
+ mainwindow.cpp mainwindow.h mainwindow.ui
+ subscriptionwindow.cpp subscriptionwindow.h subscriptionwindow.ui
+)
+target_compile_definitions(mqttsubscriptions PUBLIC
+ QT_DEPRECATED_WARNINGS
+)
+target_link_libraries(mqttsubscriptions PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Mqtt
+ Qt::Network
+ Qt::Widgets
+)
+
+install(TARGETS mqttsubscriptions
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/mqtt/websocketsubscription/CMakeLists.txt b/examples/mqtt/websocketsubscription/CMakeLists.txt
new file mode 100644
index 0000000..c1c4974
--- /dev/null
+++ b/examples/mqtt/websocketsubscription/CMakeLists.txt
@@ -0,0 +1,36 @@
+# Generated from websocketsubscription.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(websocketsubscription LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS WebSockets)
+find_package(Qt6 COMPONENTS Mqtt)
+
+add_executable(websocketsubscription
+ clientsubscription.cpp clientsubscription.h
+ main.cpp
+ websocketiodevice.cpp websocketiodevice.h
+)
+target_compile_definitions(websocketsubscription PUBLIC
+ QT_DEPRECATED_WARNINGS
+)
+target_link_libraries(websocketsubscription PUBLIC
+ Qt::Core
+ Qt::Mqtt
+ Qt::WebSockets
+)
+
+install(TARGETS websocketsubscription
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..c670977
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from src.pro.
+
+add_subdirectory(mqtt)
+
diff --git a/src/mqtt/CMakeLists.txt b/src/mqtt/CMakeLists.txt
new file mode 100644
index 0000000..bf8c333
--- /dev/null
+++ b/src/mqtt/CMakeLists.txt
@@ -0,0 +1,39 @@
+# Generated from mqtt.pro.
+
+#####################################################################
+## Mqtt Module:
+#####################################################################
+
+add_qt_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
+ 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
+)
+
+extend_target(Mqtt CONDITION MSVC AND (TEST_architecture_arch STREQUAL "i386")
+ LINK_OPTIONS
+ "/BASE:0x68000000"
+)
+
+#### Keys ignored in scope 1:.:.:mqtt.pro:<TRUE>:
+# _LOADED = "qt_module"
+add_qt_docs(
+ doc/qtmqtt.qdocconf
+)
+
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 0000000..a39c977
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,10 @@
+# special case begin
+if(NOT TARGET Qt::Test)
+ cmake_minimum_required(VERSION 3.14.0)
+ project(QtMqttTests C CXX)
+ find_package(Qt6 REQUIRED COMPONENTS BuildInternals Core Network Test)
+ qt_set_up_standalone_tests_build()
+endif()
+# special case end
+
+qt_build_tests()
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
new file mode 100644
index 0000000..5b3667f
--- /dev/null
+++ b/tests/auto/CMakeLists.txt
@@ -0,0 +1,14 @@
+# Generated from auto.pro.
+
+if(WIN32 OR (LINUX AND NOT cross_compile))
+ add_subdirectory(conformance)
+ add_subdirectory(qmqttconnectionproperties)
+ add_subdirectory(qmqttcontrolpacket)
+ add_subdirectory(qmqttclient)
+ add_subdirectory(qmqttlastwillproperties)
+ add_subdirectory(qmqttpublishproperties)
+ add_subdirectory(qmqttsubscription)
+ add_subdirectory(qmqttsubscriptionproperties)
+ add_subdirectory(qmqtttopicname)
+ add_subdirectory(qmqtttopicfilter)
+endif()
diff --git a/tests/auto/conformance/CMakeLists.txt b/tests/auto/conformance/CMakeLists.txt
new file mode 100644
index 0000000..b3b2e63
--- /dev/null
+++ b/tests/auto/conformance/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from conformance.pro.
+
+#####################################################################
+## tst_conformance Test:
+#####################################################################
+
+add_qt_test(tst_conformance
+ GUI
+ SOURCES
+ ../../common/broker_connection.h
+ tst_conformance.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
+ INCLUDE_DIRECTORIES
+ ../../common
+ LIBRARIES
+ Qt::MqttPrivate
+ PUBLIC_LIBRARIES
+ Qt::Mqtt
+ Qt::Network
+)
diff --git a/tests/auto/qmqttclient/CMakeLists.txt b/tests/auto/qmqttclient/CMakeLists.txt
new file mode 100644
index 0000000..fa87065
--- /dev/null
+++ b/tests/auto/qmqttclient/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from qmqttclient.pro.
+
+#####################################################################
+## tst_qmqttclient Test:
+#####################################################################
+
+add_qt_test(tst_qmqttclient
+ GUI
+ SOURCES
+ ../../common/broker_connection.h
+ tst_qmqttclient.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
+ INCLUDE_DIRECTORIES
+ ../../common
+ LIBRARIES
+ Qt::MqttPrivate
+ PUBLIC_LIBRARIES
+ Qt::Mqtt
+ Qt::Network
+)
diff --git a/tests/auto/qmqttconnectionproperties/CMakeLists.txt b/tests/auto/qmqttconnectionproperties/CMakeLists.txt
new file mode 100644
index 0000000..ac09706
--- /dev/null
+++ b/tests/auto/qmqttconnectionproperties/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from qmqttconnectionproperties.pro.
+
+#####################################################################
+## tst_qmqttconnectionproperties Test:
+#####################################################################
+
+add_qt_test(tst_qmqttconnectionproperties
+ GUI
+ SOURCES
+ ../../common/broker_connection.h
+ tst_qmqttconnectionproperties.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
+ INCLUDE_DIRECTORIES
+ ../../common
+ LIBRARIES
+ Qt::MqttPrivate
+ PUBLIC_LIBRARIES
+ Qt::Mqtt
+ Qt::Network
+)
diff --git a/tests/auto/qmqttcontrolpacket/CMakeLists.txt b/tests/auto/qmqttcontrolpacket/CMakeLists.txt
new file mode 100644
index 0000000..dd4f6ac
--- /dev/null
+++ b/tests/auto/qmqttcontrolpacket/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from qmqttcontrolpacket.pro.
+
+#####################################################################
+## tst_qmqttcontrolpacket Test:
+#####################################################################
+
+add_qt_test(tst_qmqttcontrolpacket
+ GUI
+ SOURCES
+ tst_qmqttcontrolpacket.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
+ LIBRARIES
+ Qt::MqttPrivate
+ PUBLIC_LIBRARIES
+ Qt::Mqtt
+ Qt::Network
+)
diff --git a/tests/auto/qmqttlastwillproperties/CMakeLists.txt b/tests/auto/qmqttlastwillproperties/CMakeLists.txt
new file mode 100644
index 0000000..85e9c36
--- /dev/null
+++ b/tests/auto/qmqttlastwillproperties/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from qmqttlastwillproperties.pro.
+
+#####################################################################
+## tst_qmqttlastwillproperties Test:
+#####################################################################
+
+add_qt_test(tst_qmqttlastwillproperties
+ GUI
+ SOURCES
+ ../../common/broker_connection.h
+ tst_qmqttlastwillproperties.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
+ INCLUDE_DIRECTORIES
+ ../../common
+ LIBRARIES
+ Qt::MqttPrivate
+ PUBLIC_LIBRARIES
+ Qt::Mqtt
+ Qt::Network
+)
diff --git a/tests/auto/qmqttpublishproperties/CMakeLists.txt b/tests/auto/qmqttpublishproperties/CMakeLists.txt
new file mode 100644
index 0000000..a6616cb
--- /dev/null
+++ b/tests/auto/qmqttpublishproperties/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from qmqttpublishproperties.pro.
+
+#####################################################################
+## tst_qmqttpublishproperties Test:
+#####################################################################
+
+add_qt_test(tst_qmqttpublishproperties
+ GUI
+ SOURCES
+ ../../common/broker_connection.h
+ tst_qmqttpublishproperties.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
+ INCLUDE_DIRECTORIES
+ ../../common
+ LIBRARIES
+ Qt::MqttPrivate
+ PUBLIC_LIBRARIES
+ Qt::Mqtt
+ Qt::Network
+)
diff --git a/tests/auto/qmqttsubscription/CMakeLists.txt b/tests/auto/qmqttsubscription/CMakeLists.txt
new file mode 100644
index 0000000..4813d02
--- /dev/null
+++ b/tests/auto/qmqttsubscription/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from qmqttsubscription.pro.
+
+#####################################################################
+## tst_qmqttsubscription Test:
+#####################################################################
+
+add_qt_test(tst_qmqttsubscription
+ GUI
+ SOURCES
+ ../../common/broker_connection.h
+ tst_qmqttsubscription.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
+ INCLUDE_DIRECTORIES
+ ../../common
+ LIBRARIES
+ Qt::MqttPrivate
+ PUBLIC_LIBRARIES
+ Qt::Mqtt
+ Qt::Network
+)
diff --git a/tests/auto/qmqttsubscriptionproperties/CMakeLists.txt b/tests/auto/qmqttsubscriptionproperties/CMakeLists.txt
new file mode 100644
index 0000000..995e1c5
--- /dev/null
+++ b/tests/auto/qmqttsubscriptionproperties/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from qmqttsubscriptionproperties.pro.
+
+#####################################################################
+## tst_qmqttsubscriptionproperties Test:
+#####################################################################
+
+add_qt_test(tst_qmqttsubscriptionproperties
+ GUI
+ SOURCES
+ ../../common/broker_connection.h
+ tst_qmqttsubscriptionproperties.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
+ INCLUDE_DIRECTORIES
+ ../../common
+ LIBRARIES
+ Qt::MqttPrivate
+ PUBLIC_LIBRARIES
+ Qt::Mqtt
+ Qt::Network
+)
diff --git a/tests/auto/qmqtttopicfilter/CMakeLists.txt b/tests/auto/qmqtttopicfilter/CMakeLists.txt
new file mode 100644
index 0000000..64cb59b
--- /dev/null
+++ b/tests/auto/qmqtttopicfilter/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from qmqtttopicfilter.pro.
+
+#####################################################################
+## tst_qmqtttopicfilter Test:
+#####################################################################
+
+add_qt_test(tst_qmqtttopicfilter
+ GUI
+ SOURCES
+ tst_qmqtttopicfilter.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
+ LIBRARIES
+ Qt::MqttPrivate
+ PUBLIC_LIBRARIES
+ Qt::Mqtt
+)
diff --git a/tests/auto/qmqtttopicname/CMakeLists.txt b/tests/auto/qmqtttopicname/CMakeLists.txt
new file mode 100644
index 0000000..345a0f5
--- /dev/null
+++ b/tests/auto/qmqtttopicname/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from qmqtttopicname.pro.
+
+#####################################################################
+## tst_qmqtttopicname Test:
+#####################################################################
+
+add_qt_test(tst_qmqtttopicname
+ GUI
+ SOURCES
+ tst_qmqtttopicname.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
+ LIBRARIES
+ Qt::MqttPrivate
+ PUBLIC_LIBRARIES
+ Qt::Mqtt
+)
diff --git a/tests/manual/sslconfiguration/CMakeLists.txt b/tests/manual/sslconfiguration/CMakeLists.txt
new file mode 100644
index 0000000..ee69eaa
--- /dev/null
+++ b/tests/manual/sslconfiguration/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Generated from sslconfiguration.pro.
+
+#####################################################################
+## sslconfiguration Binary:
+#####################################################################
+
+add_qt_executable(sslconfiguration
+ SOURCES
+ main.cpp
+ DEFINES
+ QT_DEPRECATED_WARNINGS
+ PUBLIC_LIBRARIES
+ Qt::Mqtt
+ Qt::Network
+)
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:.:sslconfiguration.pro:QNX:
+# target.path = "/tmp/$${TARGET}/bin"
+
+#### Keys ignored in scope 4:.:.:sslconfiguration.pro:UNIX AND NOT ANDROID:
+# target.path = "/opt/$${TARGET}/bin"
+
+#### Keys ignored in scope 5:.:.:sslconfiguration.pro:NOT target.path_ISEMPTY:
+# INSTALLS = "target"