Priority: P3: Somewhat important
Affects Version/s: 6.2.0 Beta3
Fix Version/s: None
Component/s: Build System: CMake
Currently if Qt is configured as a prefix build, examples are built in-tree as part of the main Qt build, rather than as ExternalProjects.
We should figure out how to build examples as ExternalProjects in prefix builds so that we can use that in the CI (which uses prefix builds) so that we have more robust build testing of our examples without the pollution of the main Qt build (e.g already found Qt packages).
Some details at
From a quick 5 second brainstorming, we might not need to "make install" Qt before the example projects are configured as a big standalone project each spawning an ExternalProject, we might be able to use CMake's export(EXPORT) to create Config and Targets file referencing targets in the build tree, and set the ExternalProject CMAKE_PREFIX_PATH to the location containing those files.
|For Gerrit Dashboard: QTBUG-96232|
|368783,7||CMake: Allow opting out of building examples as ExternalProjects||dev||qt/qtbase||Status: MERGED||+2||0|
|369289,2||CMake: Allow opting out of building examples as ExternalProjects||6.2||qt/qtbase||Status: MERGED||+2||0|