diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2022-01-26 12:26:06 +0100 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2022-02-02 22:37:33 +0100 |
commit | 63f79d7ffb22de89a2c6314caa5b5a1908590063 (patch) | |
tree | 518300179caf0ba6be6edaf911d9b7c012c24d54 /src/corelib/doc/snippets | |
parent | f84206ba6962a6ad735787cac6313223238f5d4a (diff) |
Add documentation for qt_finalize_project command
Task-number: QTBUG-100207
Pick-to: 6.3
Change-Id: I902ae827efad422771494ae3ad2da48d48d5c9cb
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/doc/snippets')
-rw-r--r-- | src/corelib/doc/snippets/cmake-macros/examples.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/corelib/doc/snippets/cmake-macros/examples.cmake b/src/corelib/doc/snippets/cmake-macros/examples.cmake index a4def96600..31cf4811e0 100644 --- a/src/corelib/doc/snippets/cmake-macros/examples.cmake +++ b/src/corelib/doc/snippets/cmake-macros/examples.cmake @@ -57,3 +57,16 @@ qt_finalize_target(complexapp) qt_android_generate_deployment_settings(myapp) qt_android_add_apk_target(myapp) #! [qt_android_deploy_basic] + +#! [qt_finalize_project_manual] +cmake_minimum_required(VERSIONS 3.16) + +project(MyProject LANGUAGES CXX) + +find_package(Qt6 REQUIRED COMPONENTS Core) + +qt_add_executable(MyApp main.cpp) +add_subdirectory(mylib) + +qt_finalize_project() +#! [qt_finalize_project_manual] |