summaryrefslogtreecommitdiffstats
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:23 +0000
commit60e373b9c32eb871115d61438d134bbbecf239fc (patch)
tree38b288623c658f4e81ef9c1f17abb8737250bb0f
parent05bb25ebcad54069b6deda0eca8e0ff952006a0b (diff)
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 05518335f..ba3765e98 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}