summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAndreas Eliasson <andreas.eliasson@qt.io>2024-04-15 10:22:32 +0200
committerAndreas Eliasson <andreas.eliasson@qt.io>2024-04-15 16:35:33 +0200
commit8fcb37dcf51f836dcc10ac86b33e417f6e5b4187 (patch)
treec3cf5be2e66b5773ffa31dd6b7bc5c57f0502d62 /doc
parent7c20e537fe3489140454ee217ee3f219edb30cfe (diff)
Doc: Add missing CMake instructions
The current page only mentions how add modules using qmake. Let's add a CMake section and make use of tabs. Fixes: QTBUG-122682 Pick-to: 6.7 6.6 6.5 6.2 Change-Id: I8bac5e5759730b3ab88c34567357ae4657652547 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'doc')
-rw-r--r--doc/src/platforms/ios.qdoc31
1 files changed, 25 insertions, 6 deletions
diff --git a/doc/src/platforms/ios.qdoc b/doc/src/platforms/ios.qdoc
index 4fd7f0b1e..d2040b120 100644
--- a/doc/src/platforms/ios.qdoc
+++ b/doc/src/platforms/ios.qdoc
@@ -272,15 +272,34 @@
\li Update the "Run" settings for your project as described in the
\l{Qt Creator: Specifying Run Settings}
- \li If your application uses imports or plugins which depend on special Qt
- modules, these Qt modules should be added to the .pro file.
- For example, if
- your application uses the Qt Multimedia import in QML, you should add
- the following to your .pro file:
-
+ \li If your application uses imports or plugins that depend on special Qt
+ modules, these Qt modules should be added to your build configuration file.
+ For example, if your application uses the Qt Multimedia import in QML, you
+ should add the following to your \c .pro or \c CMakeLists.txt file:
+ \br
+ \if defined(onlinedocs)
+ \tab {build-ios-app}{tab-cmake}{CMake}{checked}
+ \tab {build-ios-app}{tab-qmake}{qmake}{}
+ \tabcontent {tab-cmake}
+ \else
+ \section1 Using CMake
+ \endif
+ \badcode
+ find_package(Qt6 REQUIRED COMPONENTS Multimedia)
+ target_link_libraries(my_project PRIVATE Qt6::Multimedia)
+ \endcode
+ \if defined(onlinedocs)
+ \endtabcontent
+ \tabcontent {tab-qmake}
+ \else
+ \section1 Using qmake
+ \endif
\badcode
QT += multimedia
\endcode
+ \if defined(onlinedocs)
+ \endtabcontent
+ \endif
In Qt for iOS, everything is compiled statically and placed into the application
bundle. The applications are "sandboxed" inside their bundles and cannot make use