CMake: Add imported target for qdoc.
Change-Id: Ic950a4171830c83fb44cab13f79e593e5ea1ed52 Reviewed-by: Stephen Kelly <ske@ableton.com>
This commit is contained in:
parent
86b612d037
commit
dc0ae02ebc
@ -46,6 +46,21 @@ if (NOT TARGET Qt5::rcc)
|
||||
)
|
||||
endif()
|
||||
|
||||
if (NOT TARGET Qt5::qdoc)
|
||||
add_executable(Qt5::qdoc IMPORTED)
|
||||
|
||||
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
||||
set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}qdoc$$CMAKE_BIN_SUFFIX\")
|
||||
!!ELSE
|
||||
set(imported_location \"$${CMAKE_BIN_DIR}qdoc$$CMAKE_BIN_SUFFIX\")
|
||||
!!ENDIF
|
||||
_qt5_Core_check_file_exists(${imported_location})
|
||||
|
||||
set_target_properties(Qt5::qdoc PROPERTIES
|
||||
IMPORTED_LOCATION ${imported_location}
|
||||
)
|
||||
endif()
|
||||
|
||||
set(Qt5Core_QMAKE_EXECUTABLE Qt5::qmake)
|
||||
set(Qt5Core_MOC_EXECUTABLE Qt5::moc)
|
||||
set(Qt5Core_RCC_EXECUTABLE Qt5::rcc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user