From 7d90d6c59e5a536132f420370b074970e591f595 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 9 Feb 2014 14:35:57 +0100 Subject: [PATCH] Qt4: Add IMPORTED executable for qmake. --- Modules/FindQt4.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index e188c62d2..d0515c682 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -1147,6 +1147,11 @@ if (QT_QMAKE_EXECUTABLE AND QTVERSION) _find_qt4_program(QT_DESIGNER_EXECUTABLE Qt4::designer designer-qt4 designer designer4) _find_qt4_program(QT_LINGUIST_EXECUTABLE Qt4::linguist linguist-qt4 linguist linguist4) + if (NOT TARGET Qt4::qmake) + add_executable(Qt4::qmake IMPORTED) + set_property(TARGET Qt4::qmake PROPERTY IMPORTED_LOCATION ${QT_QMAKE_EXECUTABLE}) + endif() + if (QT_MOC_EXECUTABLE) set(QT_WRAP_CPP "YES") endif ()