diff options
Diffstat (limited to 'src/widgets/Qt5WidgetsConfigExtras.cmake.in')
-rw-r--r-- | src/widgets/Qt5WidgetsConfigExtras.cmake.in | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/widgets/Qt5WidgetsConfigExtras.cmake.in b/src/widgets/Qt5WidgetsConfigExtras.cmake.in new file mode 100644 index 0000000000..83d8004a08 --- /dev/null +++ b/src/widgets/Qt5WidgetsConfigExtras.cmake.in @@ -0,0 +1,31 @@ + +if (NOT TARGET Qt5::uic) + add_executable(Qt5::uic IMPORTED) + +!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) + set(imported_location \"${_qt5Widgets_install_prefix}/$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\") +!!ELSE + set(imported_location \"$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\") +!!ENDIF + _qt5_Widgets_check_file_exists(${imported_location}) + + set_target_properties(Qt5::uic PROPERTIES + IMPORTED_LOCATION ${imported_location} + ) +endif() + +if (QT5_STRICT_PLUGIN_GLOB OR Qt5$${CMAKE_MODULE_NAME}_STRICT_PLUGIN_GLOB) + include(\"${CMAKE_CURRENT_LIST_DIR}/Qt5Widgets_AccessibleFactory.cmake\" OPTIONAL) +endif() +set(Qt5Widgets_UIC_EXECUTABLE Qt5::uic) + +# Create versionless tool targets. +foreach(__qt_tool uic) + 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() |