summaryrefslogtreecommitdiffstats
path: root/Modules/FindQt4.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-02-09 13:35:57 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-02-09 13:35:57 (GMT)
commit7d90d6c59e5a536132f420370b074970e591f595 (patch)
treeeeeb860dc34c28a319df72a8c09f9f6c1f9a3f43 /Modules/FindQt4.cmake
parent1cc3e9f2e73b96370257b55f9c96586a898fe9a4 (diff)
downloadCMake-7d90d6c59e5a536132f420370b074970e591f595.zip
CMake-7d90d6c59e5a536132f420370b074970e591f595.tar.gz
CMake-7d90d6c59e5a536132f420370b074970e591f595.tar.bz2
Qt4: Add IMPORTED executable for qmake.
Diffstat (limited to 'Modules/FindQt4.cmake')
-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 ()