From d2c9ecc727688d2519489e4b08013bfde8b0ae1e Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 1 Oct 2020 11:28:56 +0200 Subject: CMake: Add versionless functions for new public API Add some missing versionless functions. Task-number: QTBUG-86827 Change-Id: I98c554429555a7692b1315658884c173129cbe81 Reviewed-by: Qt CI Bot Reviewed-by: Joerg Bornemann --- src/qml/Qt6QmlMacros.cmake | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/qml/Qt6QmlMacros.cmake') diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake index c155bac7d4..2d3d78415f 100644 --- a/src/qml/Qt6QmlMacros.cmake +++ b/src/qml/Qt6QmlMacros.cmake @@ -410,6 +410,11 @@ function(qt6_add_qml_module target) endif() endfunction() +if(NOT QT_NO_CREATE_VERSIONLESS_FUNCTIONS) + function(qt_add_qml_module) + qt6_add_qml_module(${ARGV}) + endfunction() +endif() # # Add Qml files (.qml,.js,.mjs) to a Qml module. This will also append the @@ -536,6 +541,12 @@ function(qt6_target_qml_files target) file(APPEND ${qmldir_file} ${file_contents}) endfunction() +if(NOT QT_NO_CREATE_VERSIONLESS_FUNCTIONS) + function(qt_target_qml_files) + qt6_target_qml_files(${ARGV}) + endfunction() +endif() + # QT_QMLTYPES_FILENAME: If the target has the target property QT_QMLTPYES_FILENAME set, it will be # used for the name of the generated file. Otherwise, the file will be named plugins.qmltypes if the # target is a plugin, or ${target}.qmltypes in all other cases @@ -742,6 +753,12 @@ function(qt6_qml_type_registration target) ) endfunction() +if(NOT QT_NO_CREATE_VERSIONLESS_FUNCTIONS) + function(qt_qml_type_registration) + qt6_qml_type_registration(${ARGV}) + endfunction() +endif() + # Enable the qt6_quick_compiler_process_resources function in qt6_add_resource() set(QT6_ADD_RESOURCE_DECLARATIVE_EXTENSIONS TRUE) -- cgit v1.2.3