diff options
Diffstat (limited to 'src/qml/Qt6QmlMacros.cmake')
-rw-r--r-- | src/qml/Qt6QmlMacros.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
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) |