diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-07-25 13:57:58 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2012-07-25 13:57:58 +0200 |
commit | 03b91e9ed107e85d1760c32b41d2a9e03d2f46e6 (patch) | |
tree | af6ab2b51debd17988296b18362a661c1401c3dd /modules | |
parent | a40b77fa2c9118f101546ae1631f4b00dbad636b (diff) | |
download | extra-cmake-modules-03b91e9ed107e85d1760c32b41d2a9e03d2f46e6.tar.gz extra-cmake-modules-03b91e9ed107e85d1760c32b41d2a9e03d2f46e6.tar.bz2 |
Add backwards compatibility for Qt 5 IMPORTED executables
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ECMQt4To5Porting.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/ECMQt4To5Porting.cmake b/modules/ECMQt4To5Porting.cmake index 4fc7b513..49d242a3 100644 --- a/modules/ECMQt4To5Porting.cmake +++ b/modules/ECMQt4To5Porting.cmake @@ -183,6 +183,20 @@ list(APPEND QT_QTCORE_LIBRARY ${Qt5Concurrent_LIBRARIES}) set(QT_QTDECLARATIVE_LIBRARIES ${Qt5Quick1_LIBRARIES}) set(QT_QTDECLARATIVE_LIBRARY ${Qt5Quick1_LIBRARIES}) +get_target_property(QT_QMAKE_EXECUTABLE Qt5::qmake LOCATION) +get_target_property(QT_RCC_EXECUTABLE Qt5::rcc LOCATION) +if (TARGET Qt5::uic) + get_target_property(QT_UIC_EXECUTABLE Qt5::uic LOCATION) +endif() + +if (TARGET Qt5::qdbuscpp2xml) + get_target_property(QT_QDBUSCPP2XML_EXECUTABLE Qt5::qdbuscpp2xml LOCATION) +endif() + +if (TARGET Qt5::qdbusxml2cpp) + get_target_property(QT_QDBUSXML2CPP_EXECUTABLE Qt5::qdbusxml2cpp LOCATION) +endif() + macro(qt4_wrap_ui) qt5_wrap_ui(${ARGN}) endmacro() |