1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
5\page qt-finalize-project.html
6\ingroup cmake-commands-qtcore
8\title qt_finalize_project
9\keyword qt6_finalize_project
11\summary {Handles various common platform-specific tasks associated with a Qt project.}
12\preliminarycmakecommand
14\include cmake-find-package-core.qdocinc
24\versionlessCMakeCommandsNote qt6_finalize_project()
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:
32 \li Walks the build tree.
33 \li Resolves dependencies.
34 \li Applies any extra deployment steps.
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.
41\include cmake-android-qt-finalize-project-warning.qdocinc warning
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
49\snippet cmake-macros/examples.cmake qt_finalize_project_manual
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}