summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@qt.io>2021-09-23 18:29:48 +1000
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-09-24 09:43:44 +0000
commit60bbfa0d0ed050dfb06bff7b40e4fac1a4f7a83b (patch)
tree3e277905fa9f6cd59c1e8bd9c943e1d6bb991579
parent41a6bc7f1a28646c1e436af01e06324eacba560c (diff)
downloadqtdoc-60bbfa0d0ed050dfb06bff7b40e4fac1a4f7a83b.tar.gz
Mention qt_add_executable() in the CMake getting started manual
Fixes: QTBUG-95712 Change-Id: I74b75b12b31d288359c29ec9f205ac044f8889b2 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 979e91db2ec68269c7233498a306b9e0e406f6db) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--doc/src/cmake/cmake-manual.qdoc6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/src/cmake/cmake-manual.qdoc b/doc/src/cmake/cmake-manual.qdoc
index 05518335..ba3765e9 100644
--- a/doc/src/cmake/cmake-manual.qdoc
+++ b/doc/src/cmake/cmake-manual.qdoc
@@ -169,6 +169,12 @@
they are processed by the
\l{Using the Meta-Object Compiler (moc)} {Meta-Object Compiler (moc)}.
+ For less trivial projects, you may want to call
+ \l{qt6_add_executable}{qt_add_executable()} instead. It is a wrapper around
+ the built-in \c add_executable() command, providing additional logic to
+ automatically handle things like linking of Qt plugins in static Qt builds,
+ platform-specific customization of library names and so on.
+
\printuntil
Finally, \c{target_link_libraries} tells CMake that the \c{helloworld}