Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
13
\include cmake-find-package-core.qdocinc
14
15
\cmakecommandsince 6.3
16
17
\section1 Synopsis
18
19
\badcode
20
qt_finalize_project()
21
\endcode
22
23
\versionlessCMakeCommandsNote qt6_finalize_project()
24
25
\section1 Description
26
27
Some targets that are created using Qt commands require additional actions
28
at the end of CMake configuring phase.
29
Depending on the platform, the function typically:
30
\list
31
\li Walks the build tree.
32
\li Resolves dependencies.
33
\li Applies any extra deployment steps.
34
\endlist
35
36
With CMake version 3.19 or later, you don't need to call this command since
37
it consists of sub-commands that are ordinarily invoked at the end of
38
\c CMAKE_SOURCE_DIR directory scope processing.
39
40
\include cmake-android-qt-finalize-project-warning.qdocinc warning
41
42
\section2 Examples
43
44
For projects that use a CMake version lower than 3.19, you need to call
45
\c qt_finalize_project manually. This example shows the typical use of the
46
function:
47
48
\snippet cmake-macros/examples.cmake qt_finalize_project_manual
49
50
\sa {cmake-variable-QT_NO_COLLECT_BUILD_TREE_APK_DEPS}{QT_NO_COLLECT_BUILD_TREE_APK_DEPS}
51
\sa {cmake-variable-QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS}{QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS}
52
*/
qtbase
src
corelib
doc
src
cmake
qt_finalize_project.qdoc
Generated on
for Qt by
1.16.1