summaryrefslogtreecommitdiffstats
path: root/src/widgets/Qt5WidgetsConfigExtras.cmake.in
blob: 99d87e2e46f326284ba904222ebcc44db357806e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

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()

include(\"${CMAKE_CURRENT_LIST_DIR}/Qt5Widgets_AccessibleFactory.cmake\" OPTIONAL)

set(Qt5Widgets_UIC_EXECUTABLE Qt5::uic)