summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.prev_CMakeLists.txt19
-rw-r--r--CMakeLists.txt20
-rw-r--r--coin/module_config.yaml14
-rw-r--r--dependencies.yaml7
-rw-r--r--examples/CMakeLists.txt7
-rw-r--r--examples/websockets/CMakeLists.txt13
-rw-r--r--examples/websockets/echoclient/CMakeLists.txt30
-rw-r--r--examples/websockets/echoserver/CMakeLists.txt28
-rw-r--r--examples/websockets/qmlwebsocketclient/CMakeLists.txt46
-rw-r--r--examples/websockets/qmlwebsocketserver/CMakeLists.txt46
-rw-r--r--examples/websockets/simplechat/CMakeLists.txt28
-rw-r--r--examples/websockets/sslechoclient/CMakeLists.txt28
-rw-r--r--examples/websockets/sslechoserver/CMakeLists.txt42
-rw-r--r--src/CMakeLists.txt8
-rw-r--r--src/imports/.prev_CMakeLists.txt4
-rw-r--r--src/imports/CMakeLists.txt4
-rw-r--r--src/imports/qmlwebsockets/.prev_CMakeLists.txt28
-rw-r--r--src/imports/qmlwebsockets/CMakeLists.txt28
-rw-r--r--src/websockets/CMakeLists.txt48
-rw-r--r--tests/.prev_CMakeLists.txt10
-rw-r--r--tests/CMakeLists.txt11
-rw-r--r--tests/auto/.prev_CMakeLists.txt7
-rw-r--r--tests/auto/CMakeLists.txt7
-rw-r--r--tests/auto/qml/.prev_CMakeLists.txt6
-rw-r--r--tests/auto/qml/CMakeLists.txt6
-rw-r--r--tests/auto/qml/qmlwebsockets/CMakeLists.txt18
-rw-r--r--tests/auto/websockets/CMakeLists.txt13
-rw-r--r--tests/auto/websockets/dataprocessor/CMakeLists.txt22
-rw-r--r--tests/auto/websockets/handshakerequest/CMakeLists.txt22
-rw-r--r--tests/auto/websockets/handshakeresponse/CMakeLists.txt22
-rw-r--r--tests/auto/websockets/qdefaultmaskgenerator/CMakeLists.txt22
-rw-r--r--tests/auto/websockets/qwebsocket/CMakeLists.txt15
-rw-r--r--tests/auto/websockets/qwebsocketcorsauthenticator/CMakeLists.txt15
-rw-r--r--tests/auto/websockets/qwebsocketserver/CMakeLists.txt45
-rw-r--r--tests/auto/websockets/websocketframe/CMakeLists.txt22
-rw-r--r--tests/auto/websockets/websocketprotocol/CMakeLists.txt22
36 files changed, 726 insertions, 7 deletions
diff --git a/.prev_CMakeLists.txt b/.prev_CMakeLists.txt
new file mode 100644
index 0000000..ca50e03
--- /dev/null
+++ b/.prev_CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from qtwebsockets.pro.
+
+cmake_minimum_required(VERSION 3.15.0)
+
+project(QtWebSockets
+ VERSION 6.0.0
+ DESCRIPTION "Qt WebSockets 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)
+
+if(NOT TARGET Qt::Network)
+ message(NOTICE "Skipping the build as the condition \"TARGET Qt::Network\" is not met.")
+ return()
+endif()
+qt_build_repo()
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..59289c3
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from qtwebsockets.pro.
+
+cmake_minimum_required(VERSION 3.15.0)
+
+project(QtWebSockets # special case
+ VERSION 6.0.0
+ DESCRIPTION "Qt WebSockets Libraries" # special case
+ 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 QuickTest) # special case
+
+if(NOT TARGET Qt::Network)
+ message(NOTICE "Skipping the build as the condition \"TARGET Qt::Network\" is not met.")
+ return()
+endif()
+qt_build_repo()
+
diff --git a/coin/module_config.yaml b/coin/module_config.yaml
new file mode 100644
index 0000000..4e796c6
--- /dev/null
+++ b/coin/module_config.yaml
@@ -0,0 +1,14 @@
+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"
+
diff --git a/dependencies.yaml b/dependencies.yaml
deleted file mode 100644
index c05aa09..0000000
--- a/dependencies.yaml
+++ /dev/null
@@ -1,7 +0,0 @@
-dependencies:
- ../qtbase:
- ref: f5fd9c40cd2db59e2f4eb0f588407658d8a161e6
- required: true
- ../qtdeclarative:
- ref: 1eef06e64fe91dc1f2148477fb932b293fba0312
- required: false
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644
index 0000000..cc356de
--- /dev/null
+++ b/examples/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from examples.pro.
+
+qt_examples_build_begin()
+
+add_subdirectory(websockets)
+
+qt_examples_build_end()
diff --git a/examples/websockets/CMakeLists.txt b/examples/websockets/CMakeLists.txt
new file mode 100644
index 0000000..196d6a1
--- /dev/null
+++ b/examples/websockets/CMakeLists.txt
@@ -0,0 +1,13 @@
+# Generated from websockets.pro.
+
+add_subdirectory(echoclient)
+add_subdirectory(echoserver)
+add_subdirectory(simplechat)
+if(TARGET Qt::Quick)
+ add_subdirectory(qmlwebsocketclient)
+ add_subdirectory(qmlwebsocketserver)
+endif()
+if(QT_FEATURE_ssl)
+ add_subdirectory(sslechoserver)
+ add_subdirectory(sslechoclient)
+endif()
diff --git a/examples/websockets/echoclient/CMakeLists.txt b/examples/websockets/echoclient/CMakeLists.txt
new file mode 100644
index 0000000..aab7d04
--- /dev/null
+++ b/examples/websockets/echoclient/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Generated from echoclient.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(echoclient LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/websockets/echoclient")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS WebSockets)
+
+add_executable(echoclient
+ echoclient.cpp echoclient.h
+ main.cpp
+)
+target_link_libraries(echoclient PUBLIC
+ Qt::Core
+ Qt::WebSockets
+)
+
+install(TARGETS echoclient
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/websockets/echoserver/CMakeLists.txt b/examples/websockets/echoserver/CMakeLists.txt
new file mode 100644
index 0000000..c55296f
--- /dev/null
+++ b/examples/websockets/echoserver/CMakeLists.txt
@@ -0,0 +1,28 @@
+# Generated from echoserver.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(echoserver LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/websockets/echoserver")
+
+find_package(Qt6 COMPONENTS WebSockets)
+
+add_executable(echoserver
+ echoserver.cpp echoserver.h
+ main.cpp
+)
+target_link_libraries(echoserver PUBLIC
+ Qt::WebSockets
+)
+
+install(TARGETS echoserver
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/websockets/qmlwebsocketclient/CMakeLists.txt b/examples/websockets/qmlwebsocketclient/CMakeLists.txt
new file mode 100644
index 0000000..eb67d6e
--- /dev/null
+++ b/examples/websockets/qmlwebsocketclient/CMakeLists.txt
@@ -0,0 +1,46 @@
+# Generated from qmlwebsocketclient.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(qmlwebsocketclient LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/websockets/qmlwebsocketclient")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS WebSockets)
+
+add_executable(qmlwebsocketclient
+ main.cpp
+)
+target_link_libraries(qmlwebsocketclient PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+ Qt::WebSockets
+)
+
+
+# Resources:
+set(data_resource_files
+ "qml/qmlwebsocketclient/main.qml"
+)
+
+qt6_add_resources(qmlwebsocketclient "data"
+ PREFIX
+ "/"
+ FILES
+ ${data_resource_files}
+)
+
+install(TARGETS qmlwebsocketclient
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/websockets/qmlwebsocketserver/CMakeLists.txt b/examples/websockets/qmlwebsocketserver/CMakeLists.txt
new file mode 100644
index 0000000..7da6d4f
--- /dev/null
+++ b/examples/websockets/qmlwebsocketserver/CMakeLists.txt
@@ -0,0 +1,46 @@
+# Generated from qmlwebsocketserver.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(qmlwebsocketserver LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/websockets/qmlwebsocketserver")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS WebSockets)
+
+add_executable(qmlwebsocketserver
+ main.cpp
+)
+target_link_libraries(qmlwebsocketserver PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+ Qt::WebSockets
+)
+
+
+# Resources:
+set(data_resource_files
+ "qml/qmlwebsocketserver/main.qml"
+)
+
+qt6_add_resources(qmlwebsocketserver "data"
+ PREFIX
+ "/"
+ FILES
+ ${data_resource_files}
+)
+
+install(TARGETS qmlwebsocketserver
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/websockets/simplechat/CMakeLists.txt b/examples/websockets/simplechat/CMakeLists.txt
new file mode 100644
index 0000000..a5240cb
--- /dev/null
+++ b/examples/websockets/simplechat/CMakeLists.txt
@@ -0,0 +1,28 @@
+# Generated from simplechat.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(chatserver LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/websockets/simplechat")
+
+find_package(Qt6 COMPONENTS WebSockets)
+
+add_executable(chatserver
+ chatserver.cpp chatserver.h
+ main.cpp
+)
+target_link_libraries(chatserver PUBLIC
+ Qt::WebSockets
+)
+
+install(TARGETS chatserver
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/websockets/sslechoclient/CMakeLists.txt b/examples/websockets/sslechoclient/CMakeLists.txt
new file mode 100644
index 0000000..8ba1c8b
--- /dev/null
+++ b/examples/websockets/sslechoclient/CMakeLists.txt
@@ -0,0 +1,28 @@
+# Generated from sslechoclient.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(sslechoclient LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/websockets/sslechoclient")
+
+find_package(Qt6 COMPONENTS WebSockets)
+
+add_executable(sslechoclient
+ main.cpp
+ sslechoclient.cpp sslechoclient.h
+)
+target_link_libraries(sslechoclient PUBLIC
+ Qt::WebSockets
+)
+
+install(TARGETS sslechoclient
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/websockets/sslechoserver/CMakeLists.txt b/examples/websockets/sslechoserver/CMakeLists.txt
new file mode 100644
index 0000000..a196388
--- /dev/null
+++ b/examples/websockets/sslechoserver/CMakeLists.txt
@@ -0,0 +1,42 @@
+# Generated from sslechoserver.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(sslechoserver LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/websockets/sslechoserver")
+
+find_package(Qt6 COMPONENTS WebSockets)
+
+add_executable(sslechoserver
+ main.cpp
+ sslechoserver.cpp sslechoserver.h
+)
+target_link_libraries(sslechoserver PUBLIC
+ Qt::WebSockets
+)
+
+
+# Resources:
+set(securesocketclient_resource_files
+ "localhost.cert"
+ "localhost.key"
+)
+
+qt6_add_resources(sslechoserver "securesocketclient"
+ PREFIX
+ "/"
+ FILES
+ ${securesocketclient_resource_files}
+)
+
+install(TARGETS sslechoserver
+ 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..0954e5b
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,8 @@
+# Generated from src.pro.
+
+if(QT_FEATURE_textcodec)
+ add_subdirectory(websockets)
+endif()
+if(QT_FEATURE_textcodec AND TARGET Qt::Quick)
+ add_subdirectory(imports)
+endif()
diff --git a/src/imports/.prev_CMakeLists.txt b/src/imports/.prev_CMakeLists.txt
new file mode 100644
index 0000000..5a0e274
--- /dev/null
+++ b/src/imports/.prev_CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from imports.pro.
+
+add_subdirectory(qmlwebsockets)
+add_subdirectory(qmlwebsockets_compat)
diff --git a/src/imports/CMakeLists.txt b/src/imports/CMakeLists.txt
new file mode 100644
index 0000000..e202821
--- /dev/null
+++ b/src/imports/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from imports.pro.
+
+add_subdirectory(qmlwebsockets)
+#add_subdirectory(qmlwebsockets_compat) # special case
diff --git a/src/imports/qmlwebsockets/.prev_CMakeLists.txt b/src/imports/qmlwebsockets/.prev_CMakeLists.txt
new file mode 100644
index 0000000..a18d4d0
--- /dev/null
+++ b/src/imports/qmlwebsockets/.prev_CMakeLists.txt
@@ -0,0 +1,28 @@
+# Generated from qmlwebsockets.pro.
+
+#####################################################################
+## qmlwebsockets Plugin:
+#####################################################################
+
+qt_add_qml_module(qmlwebsockets
+ URI "QtWebSockets"
+ VERSION "1.${CMAKE_PROJECT_VERSION_MINOR}"
+ CLASSNAME QtWebSocketsDeclarativeModule
+ SKIP_TYPE_REGISTRATION
+ SOURCES
+ qmlwebsockets_plugin.cpp qmlwebsockets_plugin.h
+ qqmlwebsocket.cpp qqmlwebsocket.h
+ qqmlwebsocketserver.cpp qqmlwebsocketserver.h
+ LIBRARIES
+ Qt::CorePrivate
+ Qt::QmlPrivate
+ PUBLIC_LIBRARIES
+ Qt::Core
+ Qt::Qml
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:qmlwebsockets.pro:<TRUE>:
+# IMPORT_VERSION = "1.$$QT_MINOR_VERSION"
+# OTHER_FILES = "qmldir"
+# TARGETPATH = "QtWebSockets"
diff --git a/src/imports/qmlwebsockets/CMakeLists.txt b/src/imports/qmlwebsockets/CMakeLists.txt
new file mode 100644
index 0000000..29f2eb6
--- /dev/null
+++ b/src/imports/qmlwebsockets/CMakeLists.txt
@@ -0,0 +1,28 @@
+# Generated from qmlwebsockets.pro.
+
+#####################################################################
+## qmlwebsockets Plugin:
+#####################################################################
+
+qt_add_qml_module(qmlwebsockets
+ URI "QtWebSockets"
+ VERSION "1.0" #special case
+ CLASSNAME QtWebSocketsDeclarativeModule
+ SKIP_TYPE_REGISTRATION
+ SOURCES
+ qmlwebsockets_plugin.cpp qmlwebsockets_plugin.h
+ qqmlwebsocket.cpp qqmlwebsocket.h
+ qqmlwebsocketserver.cpp qqmlwebsocketserver.h
+ LIBRARIES
+ Qt::CorePrivate
+ Qt::QmlPrivate
+ PUBLIC_LIBRARIES
+ Qt::Core
+ Qt::Qml
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:qmlwebsockets.pro:<TRUE>:
+# IMPORT_VERSION = "1.$$QT_MINOR_VERSION"
+# OTHER_FILES = "qmldir"
+# TARGETPATH = "QtWebSockets"
diff --git a/src/websockets/CMakeLists.txt b/src/websockets/CMakeLists.txt
new file mode 100644
index 0000000..1f0f705
--- /dev/null
+++ b/src/websockets/CMakeLists.txt
@@ -0,0 +1,48 @@
+# Generated from websockets.pro.
+
+#####################################################################
+## WebSockets Module:
+#####################################################################
+
+qt_add_module(WebSockets
+ SOURCES
+ qdefaultmaskgenerator_p.cpp qdefaultmaskgenerator_p.h
+ qmaskgenerator.cpp qmaskgenerator.h
+ qwebsocket.cpp qwebsocket.h qwebsocket_p.cpp qwebsocket_p.h
+ qwebsocketcorsauthenticator.cpp qwebsocketcorsauthenticator.h qwebsocketcorsauthenticator_p.h
+ qwebsocketdataprocessor.cpp qwebsocketdataprocessor_p.h
+ qwebsocketframe.cpp qwebsocketframe_p.h
+ qwebsockethandshakerequest.cpp qwebsockethandshakerequest_p.h
+ qwebsockethandshakeresponse.cpp qwebsockethandshakeresponse_p.h
+ qwebsocketprotocol.cpp qwebsocketprotocol.h qwebsocketprotocol_p.h
+ qwebsockets_global.h
+ qwebsocketserver.cpp qwebsocketserver.h qwebsocketserver_p.cpp qwebsocketserver_p.h
+ LIBRARIES
+ Qt::CorePrivate
+ PUBLIC_LIBRARIES
+ Qt::Core
+ Qt::Network
+)
+
+#### Keys ignored in scope 1:.:.:websockets.pro:<TRUE>:
+# OTHER_FILES = "doc/src/*.qdoc" "doc/snippets/*.cpp" "doc/qtwebsockets.qdocconf"
+
+## Scopes:
+#####################################################################
+
+qt_extend_target(WebSockets CONDITION WASM
+ SOURCES
+ qwebsocket_wasm_p.cpp
+)
+
+qt_extend_target(WebSockets CONDITION QT_FEATURE_ssl
+ SOURCES
+ qsslserver.cpp
+)
+
+#### Keys ignored in scope 3:.:.:websockets.pro:QT_FEATURE_ssl:
+# PRIVATE_HEADERS = "$$PWD/qsslserver_p.h"
+qt_add_docs(WebSockets
+ doc/qtwebsockets.qdocconf
+)
+
diff --git a/tests/.prev_CMakeLists.txt b/tests/.prev_CMakeLists.txt
new file mode 100644
index 0000000..806a854
--- /dev/null
+++ b/tests/.prev_CMakeLists.txt
@@ -0,0 +1,10 @@
+# Generated from tests.pro.
+
+if(NOT TARGET Qt::Test)
+ cmake_minimum_required(VERSION 3.15.0)
+ project(QtWebSocketsTests VERSION 6.0.0 LANGUAGES C CXX)
+ find_package(Qt6 ${PROJECT_VERSION} REQUIRED COMPONENTS BuildInternals Core SET_ME_TO_SOMETHING_USEFUL)
+ find_package(Qt6 ${PROJECT_VERSION} OPTIONAL_COMPONENTS SET_ME_TO_SOMETHING_USEFUL)
+ qt_set_up_standalone_tests_build()
+endif()
+qt_build_tests()
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 0000000..3d7cc10
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,11 @@
+# Generated from tests.pro.
+
+if(NOT TARGET Qt::Test)
+ cmake_minimum_required(VERSION 3.15.0)
+ project(QtWebSocketsTests VERSION 6.0.0 LANGUAGES C CXX)
+ find_package(Qt6 ${PROJECT_VERSION} REQUIRED COMPONENTS BuildInternals Core Network Test Qml Quick QuickTest WebSockets) # special case
+ qt_set_up_standalone_tests_build()
+endif()
+
+qt_build_tests()
+
diff --git a/tests/auto/.prev_CMakeLists.txt b/tests/auto/.prev_CMakeLists.txt
new file mode 100644
index 0000000..39b8e8d
--- /dev/null
+++ b/tests/auto/.prev_CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from auto.pro.
+
+add_subdirectory(cmake)
+add_subdirectory(websockets)
+if(TARGET Qt::Quick)
+ add_subdirectory(qml)
+endif()
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
new file mode 100644
index 0000000..b9730a2
--- /dev/null
+++ b/tests/auto/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from auto.pro.
+
+# add_subdirectory(cmake) # special case remove
+add_subdirectory(websockets)
+if(TARGET Qt::Quick)
+ add_subdirectory(qml)
+endif()
diff --git a/tests/auto/qml/.prev_CMakeLists.txt b/tests/auto/qml/.prev_CMakeLists.txt
new file mode 100644
index 0000000..e8d92cc
--- /dev/null
+++ b/tests/auto/qml/.prev_CMakeLists.txt
@@ -0,0 +1,6 @@
+# Generated from qml.pro.
+
+if(NOT APPLE_UIKIT)
+ add_subdirectory(qmlwebsockets)
+ add_subdirectory(qmlwebsockets_compat)
+endif()
diff --git a/tests/auto/qml/CMakeLists.txt b/tests/auto/qml/CMakeLists.txt
new file mode 100644
index 0000000..41470a7
--- /dev/null
+++ b/tests/auto/qml/CMakeLists.txt
@@ -0,0 +1,6 @@
+# Generated from qml.pro.
+
+if(NOT APPLE_UIKIT)
+ add_subdirectory(qmlwebsockets)
+ # add_subdirectory(qmlwebsockets_compat) # special case remove
+endif()
diff --git a/tests/auto/qml/qmlwebsockets/CMakeLists.txt b/tests/auto/qml/qmlwebsockets/CMakeLists.txt
new file mode 100644
index 0000000..ca1557c
--- /dev/null
+++ b/tests/auto/qml/qmlwebsockets/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from qmlwebsockets.pro.
+
+#####################################################################
+## tst_qmlwebsockets Test:
+#####################################################################
+
+qt_add_test(tst_qmlwebsockets
+ QMLTEST
+ SOURCES
+ tst_qmlwebsockets.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+)
+
+#### Keys ignored in scope 1:.:.:qmlwebsockets.pro:<TRUE>:
+# DEPLOYMENT = "importFiles"
+# TEMPLATE = "app"
+# importFiles.path = "."
diff --git a/tests/auto/websockets/CMakeLists.txt b/tests/auto/websockets/CMakeLists.txt
new file mode 100644
index 0000000..70b99db
--- /dev/null
+++ b/tests/auto/websockets/CMakeLists.txt
@@ -0,0 +1,13 @@
+# Generated from websockets.pro.
+
+add_subdirectory(qwebsocketcorsauthenticator)
+add_subdirectory(qwebsocket)
+add_subdirectory(qwebsocketserver)
+if(QT_FEATURE_private_tests)
+ add_subdirectory(websocketprotocol)
+ add_subdirectory(dataprocessor)
+ add_subdirectory(websocketframe)
+ add_subdirectory(handshakerequest)
+ add_subdirectory(handshakeresponse)
+ add_subdirectory(qdefaultmaskgenerator)
+endif()
diff --git a/tests/auto/websockets/dataprocessor/CMakeLists.txt b/tests/auto/websockets/dataprocessor/CMakeLists.txt
new file mode 100644
index 0000000..7f17f97
--- /dev/null
+++ b/tests/auto/websockets/dataprocessor/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from dataprocessor.pro.
+
+if(NOT QT_FEATURE_private_tests)
+ return()
+endif()
+
+#####################################################################
+## tst_dataprocessor Test:
+#####################################################################
+
+qt_add_test(tst_dataprocessor
+ SOURCES
+ tst_dataprocessor.cpp
+ LIBRARIES
+ Qt::WebSocketsPrivate
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:dataprocessor.pro:<TRUE>:
+# TEMPLATE = "app"
+# _REQUIREMENTS = "qtConfig(private_tests)"
diff --git a/tests/auto/websockets/handshakerequest/CMakeLists.txt b/tests/auto/websockets/handshakerequest/CMakeLists.txt
new file mode 100644
index 0000000..634e462
--- /dev/null
+++ b/tests/auto/websockets/handshakerequest/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from handshakerequest.pro.
+
+if(NOT QT_FEATURE_private_tests)
+ return()
+endif()
+
+#####################################################################
+## tst_handshakerequest Test:
+#####################################################################
+
+qt_add_test(tst_handshakerequest
+ SOURCES
+ tst_handshakerequest.cpp
+ LIBRARIES
+ Qt::WebSocketsPrivate
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:handshakerequest.pro:<TRUE>:
+# TEMPLATE = "app"
+# _REQUIREMENTS = "qtConfig(private_tests)"
diff --git a/tests/auto/websockets/handshakeresponse/CMakeLists.txt b/tests/auto/websockets/handshakeresponse/CMakeLists.txt
new file mode 100644
index 0000000..84cdebf
--- /dev/null
+++ b/tests/auto/websockets/handshakeresponse/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from handshakeresponse.pro.
+
+if(NOT QT_FEATURE_private_tests)
+ return()
+endif()
+
+#####################################################################
+## tst_handshakeresponse Test:
+#####################################################################
+
+qt_add_test(tst_handshakeresponse
+ SOURCES
+ tst_handshakeresponse.cpp
+ LIBRARIES
+ Qt::WebSocketsPrivate
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:handshakeresponse.pro:<TRUE>:
+# TEMPLATE = "app"
+# _REQUIREMENTS = "qtConfig(private_tests)"
diff --git a/tests/auto/websockets/qdefaultmaskgenerator/CMakeLists.txt b/tests/auto/websockets/qdefaultmaskgenerator/CMakeLists.txt
new file mode 100644
index 0000000..bd473af
--- /dev/null
+++ b/tests/auto/websockets/qdefaultmaskgenerator/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from qdefaultmaskgenerator.pro.
+
+if(NOT QT_FEATURE_private_tests)
+ return()
+endif()
+
+#####################################################################
+## tst_defaultmaskgenerator Test:
+#####################################################################
+
+qt_add_test(tst_defaultmaskgenerator
+ SOURCES
+ tst_defaultmaskgenerator.cpp
+ LIBRARIES
+ Qt::WebSocketsPrivate
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:qdefaultmaskgenerator.pro:<TRUE>:
+# TEMPLATE = "app"
+# _REQUIREMENTS = "qtConfig(private_tests)"
diff --git a/tests/auto/websockets/qwebsocket/CMakeLists.txt b/tests/auto/websockets/qwebsocket/CMakeLists.txt
new file mode 100644
index 0000000..ef9a63b
--- /dev/null
+++ b/tests/auto/websockets/qwebsocket/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from qwebsocket.pro.
+
+#####################################################################
+## tst_qwebsocket Test:
+#####################################################################
+
+qt_add_test(tst_qwebsocket
+ SOURCES
+ tst_qwebsocket.cpp
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:qwebsocket.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/websockets/qwebsocketcorsauthenticator/CMakeLists.txt b/tests/auto/websockets/qwebsocketcorsauthenticator/CMakeLists.txt
new file mode 100644
index 0000000..59045da
--- /dev/null
+++ b/tests/auto/websockets/qwebsocketcorsauthenticator/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from qwebsocketcorsauthenticator.pro.
+
+#####################################################################
+## tst_qwebsocketcorsauthenticator Test:
+#####################################################################
+
+qt_add_test(tst_qwebsocketcorsauthenticator
+ SOURCES
+ tst_qwebsocketcorsauthenticator.cpp
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:qwebsocketcorsauthenticator.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/websockets/qwebsocketserver/CMakeLists.txt b/tests/auto/websockets/qwebsocketserver/CMakeLists.txt
new file mode 100644
index 0000000..9b2eca8
--- /dev/null
+++ b/tests/auto/websockets/qwebsocketserver/CMakeLists.txt
@@ -0,0 +1,45 @@
+# Generated from qwebsocketserver.pro.
+
+#####################################################################
+## tst_qwebsocketserver Test:
+#####################################################################
+
+qt_add_test(tst_qwebsocketserver
+ SOURCES
+ tst_qwebsocketserver.cpp
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+# Resources:
+set_source_files_properties("../shared/localhost.cert"
+ PROPERTIES QT_RESOURCE_ALIAS "localhost.cert"
+)
+set_source_files_properties("../shared/localhost.key"
+ PROPERTIES QT_RESOURCE_ALIAS "localhost.key"
+)
+set(qwebsocketshared_resource_files
+ "localhost.cert"
+ "localhost.key"
+)
+
+qt_add_resource(tst_qwebsocketserver "qwebsocketshared"
+ PREFIX
+ "/"
+ BASE
+ "../shared"
+ FILES
+ ${qwebsocketshared_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:qwebsocketserver.pro:<TRUE>:
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+qt_extend_target(tst_qwebsocketserver CONDITION boot2qt
+ DEFINES
+ SHOULD_CHECK_SYSCALL_SUPPORT
+)
diff --git a/tests/auto/websockets/websocketframe/CMakeLists.txt b/tests/auto/websockets/websocketframe/CMakeLists.txt
new file mode 100644
index 0000000..bcbccf2
--- /dev/null
+++ b/tests/auto/websockets/websocketframe/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from websocketframe.pro.
+
+if(NOT QT_FEATURE_private_tests)
+ return()
+endif()
+
+#####################################################################
+## tst_websocketframe Test:
+#####################################################################
+
+qt_add_test(tst_websocketframe
+ SOURCES
+ tst_websocketframe.cpp
+ LIBRARIES
+ Qt::WebSocketsPrivate
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:websocketframe.pro:<TRUE>:
+# TEMPLATE = "app"
+# _REQUIREMENTS = "qtConfig(private_tests)"
diff --git a/tests/auto/websockets/websocketprotocol/CMakeLists.txt b/tests/auto/websockets/websocketprotocol/CMakeLists.txt
new file mode 100644
index 0000000..cd559b4
--- /dev/null
+++ b/tests/auto/websockets/websocketprotocol/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from websocketprotocol.pro.
+
+if(NOT QT_FEATURE_private_tests)
+ return()
+endif()
+
+#####################################################################
+## tst_websocketprotocol Test:
+#####################################################################
+
+qt_add_test(tst_websocketprotocol
+ SOURCES
+ tst_websocketprotocol.cpp
+ LIBRARIES
+ Qt::WebSocketsPrivate
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:websocketprotocol.pro:<TRUE>:
+# TEMPLATE = "app"
+# _REQUIREMENTS = "qtConfig(private_tests)"