Fix example source installation and location of qwebchannel.js
Adds all example dirs with qt_internal_add_example() so that their
source code will be installed when QT_INSTALL_EXAMPLES_SOURCES is set.
Also puts qwebchannel.js into a proper location at src/webchannel and
removes it from the examples/ tree. Adds a CMake file that will find
qwebchannel.js.
Tested configurations (CMake only):
* Out-of-source build, examples built normally
* Out-of-source build, examples built as ExternalProject
* Examples built standalone
Change-Id: Iac80602203676399a730ac4816c38bd0068e9570
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
| commit | fd817460848a2d779ac38f220ccf5c070cb89b58 |
| parent | 21b85cfceef2d908ba59a15a974ee6d6ee002720 |
| author | Arno Rehn <a.rehn@menlosystems.com> |
| committer | Arno Rehn <a.rehn@menlosystems.com> |
| commit time | Wed, 16 Jul 2025 09:22:42 +0200 |
- M examples/webchannel/CMakeLists.txt
- A examples/webchannel/chatclient-html/CMakeLists.txt
- M examples/webchannel/chatclient-qml/CMakeLists.txt
- M examples/webchannel/chatclient-qml/qmlchatclient.qml
- M examples/webchannel/chatserver-cpp/CMakeLists.txt
- A examples/webchannel/nodejs/CMakeLists.txt
- A examples/webchannel/qwclient/CMakeLists.txt
- A examples/webchannel/shared/CMakeLists.txt
- M examples/webchannel/standalone/CMakeLists.txt
- M examples/webchannel/standalone/main.cpp
- M src/webchannel/CMakeLists.txt
- A src/webchannel/Qt6WebChannelExtras.cmake.in
- R100 examples/webchannel/shared/qwebchannel.js