diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-12-05 13:30:26 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-01-24 15:19:21 +0100 |
commit | 87462935249e554d40a4ecbf4be50579bda5f783 (patch) | |
tree | 553ab1eacbf087b6b8cee1450fc14d64b0df2bf6 /tools | |
parent | 0c2a2e14b10f5e9d0dcbe769bb496ff53b9f0af6 (diff) |
CMake: Add Qt6 forward compatible CMake API
Task-number: QTBUG-74137
Task-number: QTBUG-80477
Change-Id: Iaf88de57dd25f0a28c153667593203f75b6c472c
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmlimportscanner/Qt5QmlImportScannerConfig.cmake.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/qmlimportscanner/Qt5QmlImportScannerConfig.cmake.in b/tools/qmlimportscanner/Qt5QmlImportScannerConfig.cmake.in index 6cdfaf8f6f..f92b8d295d 100644 --- a/tools/qmlimportscanner/Qt5QmlImportScannerConfig.cmake.in +++ b/tools/qmlimportscanner/Qt5QmlImportScannerConfig.cmake.in @@ -182,3 +182,13 @@ but this file does not exist. Possible reasons include: endif() !!ENDIF // !isEmpty(CMAKE_STATIC_TYPE) endfunction() + +if(NOT QT_NO_CREATE_VERSIONLESS_FUNCTIONS) + function(qt_import_qml_plugins) + if(QT_DEFAULT_MAJOR_VERSION EQUAL 5) + qt5_import_qml_plugins(${ARGV}) + elseif(QT_DEFAULT_MAJOR_VERSION EQUAL 6) + qt6_import_qml_plugins(${ARGV}) + endif() + endfunction() +endif() |