Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: Add an install_tools target for static builds
We offer a build target called 'host_tools' to build just host tools and their dependencies within a Qt build, but it was not possible to easily install the built tools. Add convenience custom targets called 'install_tools' and 'install_tools_stripped' to install the host tools when building a static Qt build. The convenience targets will be useful for qdoc static builds, to easily be able and install the tools, without having to specify each tool's install target separately. The current approach doesn't work for shared Qt builds because it would necessitate tracking the libraries that the tools depend on, so those are installed as well. So for now, this is limited to static builds only, where there are no shared library dependencies that have to be installed. The implementation passes 'host_tools' as an installation component for qt_internal_add_tool installed targets. The custom target then just calls cmake --install with the component name. Task-number: QTBUG-91243 Task-number: QTBUG-128730 Change-Id: Ic047ec3b8683043f496b4b2c3cf883a3e70440b3 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit c64190c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
- Loading branch information