Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qt_finalize_project.qdoc
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5\page qt-finalize-project.html
6\ingroup cmake-commands-qtcore
7
8\title qt_finalize_project
9\keyword qt6_finalize_project
10
11\summary {Handles various common platform-specific tasks associated with a Qt project.}
12\preliminarycmakecommand
13
14\include cmake-find-package-core.qdocinc
15
16\cmakecommandsince 6.3
17
18\section1 Synopsis
19
20\badcode
21qt_finalize_project()
22\endcode
23
24\versionlessCMakeCommandsNote qt6_finalize_project()
25
26\section1 Description
27
28Some targets that are created using Qt commands require additional actions
29at the end of CMake configuring phase.
30Depending on the platform, the function typically:
31\list
32 \li Walks the build tree.
33 \li Resolves dependencies.
34 \li Applies any extra deployment steps.
35\endlist
36
37With CMake version 3.19 or later, you don't need to call this command since
38it consists of sub-commands that are ordinarily invoked at the end of
39\c CMAKE_SOURCE_DIR directory scope processing.
40
41\include cmake-android-qt-finalize-project-warning.qdocinc warning
42
43\section2 Examples
44
45For projects that use a CMake version lower than 3.19, you need to call
46\c qt_finalize_project manually. This example shows the typical use of the
47function:
48
49\snippet cmake-macros/examples.cmake qt_finalize_project_manual
50
51\sa {cmake-variable-QT_NO_COLLECT_BUILD_TREE_APK_DEPS}{QT_NO_COLLECT_BUILD_TREE_APK_DEPS}
52\sa {cmake-variable-QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS}{QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS}
53*/