qt6-bb10/examples
Alexandru Croitor 62905163bf CMake: Allow building all examples as standalone just like tests
Introduce a new libexec/qt-internal-configure-examples script that
allows to configure and build "standalone examples" just like
"standalone tests".

This is a prerequisite for using deployment api in examples for prefix
builds, otherwise deployment api gets confused not finding various
information that it expects from an installed qt.

Because the various conditions in the build system for standalone
examples are similar to standalone tests, introduce a new
QT_BUILD_STANDALONE_PARTS variable and use that in the conditions.
The variable should not be set by the user, and is instead set by the
build system whenever QT_BUILD_STANDALONE_TESTS/EXAMPLES is set.

Unfortunately due to no common file being available before the first
project() call, in qtbase builds, per-repo builds and top-level builds,
we need to duplicate the code for setting QT_BUILD_STANDALONE_PARTS for
all three cases.

Task-number: QTBUG-90820
Task-number: QTBUG-96232
Change-Id: Ia40d03a0e8f5142abe5c7cd4ff3000df4a5f7a8a
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-03-14 11:44:16 +01:00
..
aggregate install a sane top-level examples.pro file 2012-12-11 13:37:57 +01:00
corelib CMake: Use qt_internal_add_example for bindableproperties 2024-03-11 13:48:24 +01:00
dbus Correct license for examples files 2024-03-07 11:06:43 +01:00
gui Correct license for examples files 2024-03-07 11:06:43 +01:00
network Correct license for examples files 2024-03-07 11:06:43 +01:00
opengl Correct license for examples files 2024-03-07 11:06:43 +01:00
qmake examples: port qmake examples to new connection style 2022-12-21 22:52:17 +02:00
qtconcurrent Correct license for examples files 2024-03-07 11:06:43 +01:00
qtestlib Correct license for examples files 2024-03-07 11:06:43 +01:00
sql SQL/QSqlField: deprecate internal functions setSqlType()/typeID() 2024-03-10 18:16:00 +00:00
vulkan Correct license for examples files 2024-03-07 11:06:43 +01:00
widgets Correct license for examples files 2024-03-07 11:06:43 +01:00
xml Correct license for examples files 2024-03-07 11:06:43 +01:00
CMakeLists.txt CMake: Allow building all examples as standalone just like tests 2024-03-14 11:44:16 +01:00
README
examples.pro Remove undocumented embedded examples 2023-11-17 19:39:33 +01:00

README

Qt is supplied with a number of example applications that have been
written to provide developers with examples of the Qt API in use,
highlight good programming practice, and showcase features found in each of
Qt's core technologies.


Documentation for examples can be found in the Examples section
of the Qt documentation.