summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-02-10 16:25:00 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-02-10 16:25:00 (GMT)
commitd51dc24e2b18e5d0ba61eccd55e34fb729d765fa (patch)
tree6acb5e07b076b9ca6a3d91e3f16b1f5b5ec219bb
parentf67ab2a920cfce8db31ce214a198670cab31470a (diff)
parent7d90d6c59e5a536132f420370b074970e591f595 (diff)
downloadCMake-d51dc24e2b18e5d0ba61eccd55e34fb729d765fa.zip
CMake-d51dc24e2b18e5d0ba61eccd55e34fb729d765fa.tar.gz
CMake-d51dc24e2b18e5d0ba61eccd55e34fb729d765fa.tar.bz2
Merge topic 'Qt4-qmake-IMPORTED'
7d90d6c5 Qt4: Add IMPORTED executable for qmake.
-rw-r--r--Modules/FindQt4.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
index e188c62..d0515c6 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 ()