qt6-bb10/examples/widgets/graphicsview/boxes
Alexandru Croitor 9b0b464e82 Write find_dependency() calls in Qt Module config files
This change introduces a new function called qt_find_package()
which can take an extra option called PROVIDED_TARGETS, which
associates targets with the package that defines those targets.
This is done by setting the INTERFACE_QT_PACKAGE_NAME and
INTERFACE_QT_PACKAGE_VERSION properties on the imported targets.

This information allows us to generate appropriate find_dependency()
calls in a module's Config file for third party libraries.

For example when an application links against QtCore, it should also
link against zlib and atomic libraries. In order to do that, the
library locations first have to be found by CMake. This is achieved by
embedding find_dependency(ZLIB) and find_dependency(Atomic) in
Qt5CoreDependencies.cmake which is included by Qt5CoreConfig.cmake.
The latter is picked up when an application project contains
find_package(Qt5Core), and thus all linking dependencies are resolved.

The information 'which package provides which targets' is contained
in the python json2cmake conversion script. The generated output of
the script contains qt_find_package() calls that represent that
information.

The Qt5CoreDependencies.cmake file and which which dependencies it
contains is generated at the QtPostProcess stop.

Note that for non-static Qt builds, we only need to propagate public
3rd party libraries. For static builds, we need all third party
libraries.

In order for the INTERFACE_QT_PACKAGE_NAME property to be read in any
scope, the targets on which the property is set, have to be GLOBAL.

Also for applications and other modules to find all required third
party libraries, we have to install all our custom Find modules, and
make sure they define INTERFACE IMPORTED libraries, and not just
IMPORTED libraries.

Change-Id: I694d6e32d05b96d5e241df0156fc79d0029426aa
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-05-02 07:30:42 +00:00
..
3rdparty Remove some more register keywords 2017-05-06 16:59:18 +00:00
CMakeLists.txt Write find_dependency() calls in Qt Module config files 2019-05-02 07:30:42 +00:00
basic.fsh Updated license headers 2016-01-21 18:55:32 +00:00
basic.vsh Updated license headers 2016-01-21 18:55:32 +00:00
boxes.pro qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
boxes.qrc
cubemap_negx.jpg
cubemap_negy.jpg
cubemap_negz.jpg
cubemap_posx.jpg
cubemap_posy.jpg
cubemap_posz.jpg
dotted.fsh Updated license headers 2016-01-21 18:55:32 +00:00
fresnel.fsh Updated license headers 2016-01-21 18:55:32 +00:00
glass.fsh Updated license headers 2016-01-21 18:55:32 +00:00
glbuffers.cpp Cleanup Widgets examples - foreach 2019-01-23 18:49:02 +00:00
glbuffers.h Cleanup Widgets examples - foreach 2019-01-23 18:49:02 +00:00
glextensions.cpp Updated license headers 2016-01-21 18:55:32 +00:00
glextensions.h glextensions.h: simplify #if-ery to avoid conflict 2018-05-31 15:51:55 +00:00
gltrianglemesh.h Updated license headers 2016-01-21 18:55:32 +00:00
granite.fsh Updated license headers 2016-01-21 18:55:32 +00:00
main.cpp Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
marble.fsh Updated license headers 2016-01-21 18:55:32 +00:00
parameters.par
qt-logo.jpg New Qt logo 2014-11-05 08:10:42 +01:00
qt-logo.png New Qt logo 2014-11-05 08:10:42 +01:00
qtbox.cpp Cleanup Widgets examples - foreach 2019-01-23 18:49:02 +00:00
qtbox.h Examples: Remove a redundant virtual specifier for overriders 2016-11-25 22:36:21 +00:00
reflection.fsh Updated license headers 2016-01-21 18:55:32 +00:00
refraction.fsh Updated license headers 2016-01-21 18:55:32 +00:00
roundedbox.cpp Updated license headers 2016-01-21 18:55:32 +00:00
roundedbox.h Updated license headers 2016-01-21 18:55:32 +00:00
scene.cpp Cleanup Widgets examples - foreach 2019-01-23 18:49:02 +00:00
scene.h Be (somewhat more) consistent about the value of pi 2017-06-20 09:53:46 +00:00
smiley.png
square.jpg
trackball.cpp Exploit QVector3D::length() instead of duplicating its work 2017-07-07 18:09:08 +00:00
trackball.h Updated license headers 2016-01-21 18:55:32 +00:00
wood.fsh Updated license headers 2016-01-21 18:55:32 +00:00