diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-12-05 13:40:34 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-01-24 15:19:26 +0100 |
commit | eac773c8dfd0e2166db53c88f5aa0c1e85933cac (patch) | |
tree | 10fb2ad6b42300172627501837a14588e0b53cf1 /src/assistant | |
parent | 11e62fb056a715075b034a63e248d980bc88b29d (diff) | |
download | qttools-eac773c8dfd0e2166db53c88f5aa0c1e85933cac.tar.gz |
CMake: Add Qt6 forward compatible CMake API and targets
Task-number: QTBUG-74137
Task-number: QTBUG-80477
Change-Id: Ib33f27e476bad1cdffda1539c8befaea9070a7e6
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'src/assistant')
-rw-r--r-- | src/assistant/help/Qt5HelpConfigExtras.cmake.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/assistant/help/Qt5HelpConfigExtras.cmake.in b/src/assistant/help/Qt5HelpConfigExtras.cmake.in index 3b97923a9..1f7544b62 100644 --- a/src/assistant/help/Qt5HelpConfigExtras.cmake.in +++ b/src/assistant/help/Qt5HelpConfigExtras.cmake.in @@ -28,3 +28,14 @@ if (NOT TARGET Qt5::qhelpgenerator) IMPORTED_LOCATION ${imported_location} ) endif() + +# Create versionless tool targets. +foreach(__qt_tool qcollectiongenerator qhelpgenerator) + if(NOT \"${QT_NO_CREATE_VERSIONLESS_TARGETS}\" AND NOT TARGET Qt::${__qt_tool} + AND TARGET Qt5::${__qt_tool}) + add_executable(Qt::${__qt_tool} IMPORTED) + get_target_property(__qt_imported_location Qt5::${__qt_tool} IMPORTED_LOCATION) + set_target_properties(Qt::${__qt_tool} + PROPERTIES IMPORTED_LOCATION \"${__qt_imported_location}\") + endif() +endforeach() |