mirror of
https://github.com/qt/qtmqtt.git
synced 2026-10-25 16:16:26 +00:00
Merge remote-tracking branch 'origin/wip/cmake' into dev
Change-Id: I5074da47986bcc826d3990238b02ebe7e6cc3d2e
This commit is contained in:
commit
a450023285
1
.cmake.conf
Normal file
1
.cmake.conf
Normal file
@ -0,0 +1 @@
|
||||
set(QT_REPO_MODULE_VERSION "6.0.0")
|
||||
16
.prev_CMakeLists.txt
Normal file
16
.prev_CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
# Generated from qtmqtt.pro.
|
||||
|
||||
cmake_minimum_required(VERSION 3.15.0)
|
||||
|
||||
include(.cmake.conf)
|
||||
project(QtMqtt
|
||||
VERSION "${QT_REPO_MODULE_VERSION}"
|
||||
DESCRIPTION "Qt Mqtt Libraries"
|
||||
HOMEPAGE_URL "https://qt.io/"
|
||||
LANGUAGES CXX C
|
||||
)
|
||||
|
||||
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core SET_ME_TO_SOMETHING_USEFUL)
|
||||
find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS SET_ME_TO_SOMETHING_USEFUL)
|
||||
|
||||
qt_build_repo()
|
||||
17
CMakeLists.txt
Normal file
17
CMakeLists.txt
Normal file
@ -0,0 +1,17 @@
|
||||
# Generated from qtmqtt.pro.
|
||||
|
||||
cmake_minimum_required(VERSION 3.15.0)
|
||||
|
||||
include(.cmake.conf)
|
||||
project(QtMqtt
|
||||
VERSION "${QT_REPO_MODULE_VERSION}"
|
||||
DESCRIPTION "Qt Mqtt Libraries"
|
||||
HOMEPAGE_URL "https://qt.io/"
|
||||
LANGUAGES CXX C
|
||||
)
|
||||
|
||||
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Network) # special case
|
||||
find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Quick WebSockets # For tests # special case
|
||||
Gui Widgets) # For examples # special case
|
||||
qt_build_repo()
|
||||
|
||||
13
coin/module_config.yaml
Normal file
13
coin/module_config.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
version: 1
|
||||
accept_configuration:
|
||||
condition: property
|
||||
property: host.os
|
||||
equals_property: target.os
|
||||
|
||||
build_instructions:
|
||||
- !include "{{qt/qtbase}}/prepare_building_env.yaml"
|
||||
- !include "{{qt/qtbase}}/cmake_module_build_instructions.yaml"
|
||||
- !include "{{qt/qtbase}}/cmake_build_and_upload_test_artifacts.yaml"
|
||||
|
||||
test_instructions:
|
||||
- !include "{{qt/qtbase}}/cmake_regular_test_instructions.yaml"
|
||||
7
examples/.prev_CMakeLists.txt
Normal file
7
examples/.prev_CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
# Generated from examples.pro.
|
||||
|
||||
qt_examples_build_begin()
|
||||
|
||||
add_subdirectory(mqtt)
|
||||
|
||||
qt_examples_build_end()
|
||||
7
examples/CMakeLists.txt
Normal file
7
examples/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
# Generated from examples.pro.
|
||||
|
||||
qt_examples_build_begin()
|
||||
|
||||
add_subdirectory(mqtt)
|
||||
|
||||
qt_examples_build_end()
|
||||
14
examples/mqtt/CMakeLists.txt
Normal file
14
examples/mqtt/CMakeLists.txt
Normal file
@ -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()
|
||||
72
examples/mqtt/consolepubsub/CMakeLists.txt
Normal file
72
examples/mqtt/consolepubsub/CMakeLists.txt
Normal file
@ -0,0 +1,72 @@
|
||||
# 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)
|
||||
|
||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||
set(INSTALL_EXAMPLESDIR "examples")
|
||||
endif()
|
||||
|
||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/mqtt/consolepubsub")
|
||||
|
||||
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)
|
||||
|
||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||
set(INSTALL_EXAMPLESDIR "examples")
|
||||
endif()
|
||||
|
||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/mqtt/consolepubsub")
|
||||
|
||||
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}"
|
||||
)
|
||||
57
examples/mqtt/quickpublication/CMakeLists.txt
Normal file
57
examples/mqtt/quickpublication/CMakeLists.txt
Normal file
@ -0,0 +1,57 @@
|
||||
# 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)
|
||||
|
||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||
set(INSTALL_EXAMPLESDIR "examples")
|
||||
endif()
|
||||
|
||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/mqtt/quickpublication")
|
||||
|
||||
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}"
|
||||
)
|
||||
57
examples/mqtt/quicksubscription/CMakeLists.txt
Normal file
57
examples/mqtt/quicksubscription/CMakeLists.txt
Normal file
@ -0,0 +1,57 @@
|
||||
# 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)
|
||||
|
||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||
set(INSTALL_EXAMPLESDIR "examples")
|
||||
endif()
|
||||
|
||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/mqtt/quicksubscription")
|
||||
|
||||
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}"
|
||||
)
|
||||
48
examples/mqtt/simpleclient/.prev_CMakeLists.txt
Normal file
48
examples/mqtt/simpleclient/.prev_CMakeLists.txt
Normal file
@ -0,0 +1,48 @@
|
||||
# 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)
|
||||
|
||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||
set(INSTALL_EXAMPLESDIR "examples")
|
||||
endif()
|
||||
|
||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/mqtt/simpleclient")
|
||||
|
||||
find_package(Qt6 COMPONENTS Core)
|
||||
find_package(Qt6 COMPONENTS Gui)
|
||||
find_package(Qt6 COMPONENTS Network)
|
||||
find_package(Qt6 COMPONENTS Mqtt)
|
||||
|
||||
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
|
||||
)
|
||||
|
||||
if((QT_MAJOR_VERSION GREATER 4))
|
||||
target_link_libraries(simplemqttclient PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
endif()
|
||||
|
||||
install(TARGETS simplemqttclient
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
50
examples/mqtt/simpleclient/CMakeLists.txt
Normal file
50
examples/mqtt/simpleclient/CMakeLists.txt
Normal file
@ -0,0 +1,50 @@
|
||||
# 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)
|
||||
|
||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||
set(INSTALL_EXAMPLESDIR "examples")
|
||||
endif()
|
||||
|
||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/mqtt/simpleclient")
|
||||
|
||||
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
|
||||
|
||||
if((QT_MAJOR_VERSION GREATER 4))
|
||||
target_link_libraries(simplemqttclient PUBLIC
|
||||
Qt::Widgets
|
||||
)
|
||||
endif()
|
||||
|
||||
install(TARGETS simplemqttclient
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
45
examples/mqtt/subscriptions/CMakeLists.txt
Normal file
45
examples/mqtt/subscriptions/CMakeLists.txt
Normal file
@ -0,0 +1,45 @@
|
||||
# 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)
|
||||
|
||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||
set(INSTALL_EXAMPLESDIR "examples")
|
||||
endif()
|
||||
|
||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/mqtt/subscriptions")
|
||||
|
||||
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}"
|
||||
)
|
||||
41
examples/mqtt/websocketsubscription/CMakeLists.txt
Normal file
41
examples/mqtt/websocketsubscription/CMakeLists.txt
Normal file
@ -0,0 +1,41 @@
|
||||
# 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)
|
||||
|
||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||
set(INSTALL_EXAMPLESDIR "examples")
|
||||
endif()
|
||||
|
||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/mqtt/websocketsubscription")
|
||||
|
||||
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}"
|
||||
)
|
||||
3
src/CMakeLists.txt
Normal file
3
src/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
# Generated from src.pro.
|
||||
|
||||
add_subdirectory(mqtt)
|
||||
33
src/mqtt/CMakeLists.txt
Normal file
33
src/mqtt/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# Generated from mqtt.pro.
|
||||
|
||||
#####################################################################
|
||||
## Mqtt Module:
|
||||
#####################################################################
|
||||
|
||||
qt_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
|
||||
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_add_docs(Mqtt
|
||||
doc/qtmqtt.qdocconf
|
||||
)
|
||||
|
||||
7
tests/.prev_CMakeLists.txt
Normal file
7
tests/.prev_CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
# Generated from tests.pro.
|
||||
|
||||
if(QT_BUILD_STANDALONE_TESTS)
|
||||
# Add qt_find_package calls for extra dependencies that need to be found when building
|
||||
# the standalone tests here.
|
||||
endif()
|
||||
qt_build_tests()
|
||||
7
tests/CMakeLists.txt
Normal file
7
tests/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
# Generated from tests.pro.
|
||||
|
||||
if(QT_BUILD_STANDALONE_TESTS)
|
||||
# Add qt_find_package calls for extra dependencies that need to be found when building
|
||||
# the standalone tests here.
|
||||
endif()
|
||||
qt_build_tests()
|
||||
17
tests/auto/CMakeLists.txt
Normal file
17
tests/auto/CMakeLists.txt
Normal file
@ -0,0 +1,17 @@
|
||||
# Generated from auto.pro.
|
||||
|
||||
if(WIN32 OR (LINUX AND NOT CMAKE_CROSSCOMPILING))
|
||||
# special case begin
|
||||
# add_subdirectory(cmake)
|
||||
# special case end
|
||||
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()
|
||||
20
tests/auto/conformance/CMakeLists.txt
Normal file
20
tests/auto/conformance/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
# Generated from conformance.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_conformance Test:
|
||||
#####################################################################
|
||||
|
||||
qt_add_test(tst_conformance
|
||||
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
|
||||
)
|
||||
20
tests/auto/qmqttclient/CMakeLists.txt
Normal file
20
tests/auto/qmqttclient/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
# Generated from qmqttclient.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qmqttclient Test:
|
||||
#####################################################################
|
||||
|
||||
qt_add_test(tst_qmqttclient
|
||||
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
|
||||
)
|
||||
20
tests/auto/qmqttconnectionproperties/CMakeLists.txt
Normal file
20
tests/auto/qmqttconnectionproperties/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
# Generated from qmqttconnectionproperties.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qmqttconnectionproperties Test:
|
||||
#####################################################################
|
||||
|
||||
qt_add_test(tst_qmqttconnectionproperties
|
||||
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
|
||||
)
|
||||
17
tests/auto/qmqttcontrolpacket/CMakeLists.txt
Normal file
17
tests/auto/qmqttcontrolpacket/CMakeLists.txt
Normal file
@ -0,0 +1,17 @@
|
||||
# Generated from qmqttcontrolpacket.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qmqttcontrolpacket Test:
|
||||
#####################################################################
|
||||
|
||||
qt_add_test(tst_qmqttcontrolpacket
|
||||
SOURCES
|
||||
tst_qmqttcontrolpacket.cpp
|
||||
DEFINES
|
||||
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
|
||||
LIBRARIES
|
||||
Qt::MqttPrivate
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Mqtt
|
||||
Qt::Network
|
||||
)
|
||||
20
tests/auto/qmqttlastwillproperties/CMakeLists.txt
Normal file
20
tests/auto/qmqttlastwillproperties/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
# Generated from qmqttlastwillproperties.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qmqttlastwillproperties Test:
|
||||
#####################################################################
|
||||
|
||||
qt_add_test(tst_qmqttlastwillproperties
|
||||
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
|
||||
)
|
||||
20
tests/auto/qmqttpublishproperties/CMakeLists.txt
Normal file
20
tests/auto/qmqttpublishproperties/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
# Generated from qmqttpublishproperties.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qmqttpublishproperties Test:
|
||||
#####################################################################
|
||||
|
||||
qt_add_test(tst_qmqttpublishproperties
|
||||
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
|
||||
)
|
||||
20
tests/auto/qmqttsubscription/CMakeLists.txt
Normal file
20
tests/auto/qmqttsubscription/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
# Generated from qmqttsubscription.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qmqttsubscription Test:
|
||||
#####################################################################
|
||||
|
||||
qt_add_test(tst_qmqttsubscription
|
||||
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
|
||||
)
|
||||
20
tests/auto/qmqttsubscriptionproperties/CMakeLists.txt
Normal file
20
tests/auto/qmqttsubscriptionproperties/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
# Generated from qmqttsubscriptionproperties.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qmqttsubscriptionproperties Test:
|
||||
#####################################################################
|
||||
|
||||
qt_add_test(tst_qmqttsubscriptionproperties
|
||||
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
|
||||
)
|
||||
16
tests/auto/qmqtttopicfilter/CMakeLists.txt
Normal file
16
tests/auto/qmqtttopicfilter/CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
# Generated from qmqtttopicfilter.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qmqtttopicfilter Test:
|
||||
#####################################################################
|
||||
|
||||
qt_add_test(tst_qmqtttopicfilter
|
||||
SOURCES
|
||||
tst_qmqtttopicfilter.cpp
|
||||
DEFINES
|
||||
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
|
||||
LIBRARIES
|
||||
Qt::MqttPrivate
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Mqtt
|
||||
)
|
||||
16
tests/auto/qmqtttopicname/CMakeLists.txt
Normal file
16
tests/auto/qmqtttopicname/CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
# Generated from qmqtttopicname.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qmqtttopicname Test:
|
||||
#####################################################################
|
||||
|
||||
qt_add_test(tst_qmqtttopicname
|
||||
SOURCES
|
||||
tst_qmqtttopicname.cpp
|
||||
DEFINES
|
||||
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
|
||||
LIBRARIES
|
||||
Qt::MqttPrivate
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Mqtt
|
||||
)
|
||||
27
tests/manual/sslconfiguration/CMakeLists.txt
Normal file
27
tests/manual/sslconfiguration/CMakeLists.txt
Normal file
@ -0,0 +1,27 @@
|
||||
# Generated from sslconfiguration.pro.
|
||||
|
||||
#####################################################################
|
||||
## sslconfiguration Binary:
|
||||
#####################################################################
|
||||
|
||||
qt_add_manual_test(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"
|
||||
Loading…
Reference in New Issue
Block a user