34 lines
1.2 KiB
CMake
34 lines
1.2 KiB
CMake
|
|||
|
|
if (NOT TARGET Qt5::qcollectiongenerator)
|
||
|
|
add_executable(Qt5::qcollectiongenerator IMPORTED)
|
||
|
|
|
||
|
|
set(imported_location "${_qt5Help_install_prefix}/bin/qcollectiongenerator")
|
||
|
|
_qt5_Help_check_file_exists(${imported_location})
|
||
|
|
|
||
|
|
set_target_properties(Qt5::qcollectiongenerator PROPERTIES
|
||
|
|
IMPORTED_LOCATION ${imported_location}
|
||
|
|
)
|
||
|
|
endif()
|
||
|
|
|
||
|
|
if (NOT TARGET Qt5::qhelpgenerator)
|
||
|
|
add_executable(Qt5::qhelpgenerator IMPORTED)
|
||
|
|
|
||
|
|
set(imported_location "${_qt5Help_install_prefix}/bin/qhelpgenerator")
|
||
|
|
_qt5_Help_check_file_exists(${imported_location})
|
||
|
|
|
||
|
|
set_target_properties(Qt5::qhelpgenerator PROPERTIES
|
||
|
|
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()
|