d97fd7af2b
Examples are intended to show how to build against an installed Qt. Building them as part of the main build means the way the Qt targets are defined and created are not representative of an end user's build. By building them as separate projects using ExternalProject, we can more closely replicate the intended audience's environment. This should allow us to catch more problems earlier. Having examples built as part of the main build also creates problems with some static builds where a tool built by the main build is needed during configure time. This happens with other repos like qtdeclarative but not (currently) with qtbase. Converting the examples in qtbase to be built using ExternalProject is intended as a demonstrator for how other repos can do similar. Until other repos are converted, they will continue to work as they did before, with examples as part of the main build for non-static builds only. The new build-externally behavior is only supported for non-prefix builds with this change. Prefix builds will continue to use the old non-external method. Support for building examples externally in prefix builds will be a separate change. Task-number: QTBUG-90820 Fixes: QTBUG-91068 Change-Id: I2304329940568dbdb7da18d54d5595ea7d8668bc Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
15 lines
582 B
CMake
15 lines
582 B
CMake
# Generated from painting.pro.
|
|
|
|
#add_subdirectory(shared) # special case pulled in by other subdirs as needed
|
|
qt_internal_add_example(basicdrawing)
|
|
qt_internal_add_example(concentriccircles)
|
|
qt_internal_add_example(affine)
|
|
# qt_internal_add_example(composition) # special case FIXME: Seems buggy wrt. usesOpenGL function
|
|
qt_internal_add_example(deform)
|
|
qt_internal_add_example(gradients)
|
|
qt_internal_add_example(pathstroke)
|
|
qt_internal_add_example(imagecomposition)
|
|
qt_internal_add_example(painterpaths)
|
|
qt_internal_add_example(transformations)
|
|
qt_internal_add_example(fontsampler)
|