aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc/snippets/code/doc_src_qtqml.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/doc/snippets/code/doc_src_qtqml.cmake')
-rw-r--r--src/qml/doc/snippets/code/doc_src_qtqml.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/qml/doc/snippets/code/doc_src_qtqml.cmake b/src/qml/doc/snippets/code/doc_src_qtqml.cmake
new file mode 100644
index 0000000000..1d9dccc49a
--- /dev/null
+++ b/src/qml/doc/snippets/code/doc_src_qtqml.cmake
@@ -0,0 +1,13 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+#! [0]
+find_package(Qt6 REQUIRED COMPONENTS Qml)
+target_link_libraries(mytarget PRIVATE Qt6::Qml)
+#! [0]
+
+#! [1]
+find_package(Qt6 REQUIRED COMPONENTS QmlIntegration)
+target_link_libraries(mytarget PRIVATE Qt6::QmlIntegration)
+#! [1]
+