From 9e03505902ee7bda802f18ad1a34d36f96838985 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 11 Feb 2022 15:54:07 +0100 Subject: CMake: Fix docs and implementation of qt_generate_foreign_qml_types Renamed doc file not to contain the version number like the rest of the doc files. Clarified description of what the function does. Adjusted doc page title and contents of the function. Fixed synopsis. Added Technical Preview note. Renamed function arguments for clarity. Fixed incorrect COMMENT and DEPENDS target usage. Added mention to QmlIntegration and qt_generate_foreign_qml_types on the Qml module page. Amends 96c1337aef41694c1af4863ad6f0d4d1f961363a Amends 3b1ae2f598d6013e5d262262002820d6eb76805b Pick-to: 6.3 Fixes: QTBUG-100216 Change-Id: I5c48616a7836c4ddb3f5ca36b7e82f1364995f2f Reviewed-by: Leena Miettinen Reviewed-by: Fabian Kosmale --- src/qml/doc/snippets/code/doc_src_qtqml.cmake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/qml/doc/snippets') diff --git a/src/qml/doc/snippets/code/doc_src_qtqml.cmake b/src/qml/doc/snippets/code/doc_src_qtqml.cmake index c312201ff8..30ff8981a9 100644 --- a/src/qml/doc/snippets/code/doc_src_qtqml.cmake +++ b/src/qml/doc/snippets/code/doc_src_qtqml.cmake @@ -2,3 +2,9 @@ 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] + -- cgit v1.2.3