aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-02-07 22:06:53 +0100
committerStephen Kelly <steveire@gmail.com>2012-02-07 22:06:53 +0100
commit5644e0012b0270c53052bd44f192e999193e5ca0 (patch)
treedc5acdc1b0e1894e06eb103cd59b5362597b72b4
parent84eb044da7473cdbd5ef774ff428ef99bc0cd8b2 (diff)
downloadextra-cmake-modules-5644e0012b0270c53052bd44f192e999193e5ca0.tar.gz
extra-cmake-modules-5644e0012b0270c53052bd44f192e999193e5ca0.tar.bz2
Add transitional code for declarative.
-rw-r--r--modules/ECMQt4To5Porting.cmake5
-rw-r--r--modules/FindQt5Transitional.cmake2
2 files changed, 7 insertions, 0 deletions
diff --git a/modules/ECMQt4To5Porting.cmake b/modules/ECMQt4To5Porting.cmake
index 8e7ea52a..50c8e635 100644
--- a/modules/ECMQt4To5Porting.cmake
+++ b/modules/ECMQt4To5Porting.cmake
@@ -163,6 +163,8 @@ set(_qt_modules
Concurrent
Xml
UiTools
+ Declarative
+ Quick1
)
foreach(_module ${_qt_modules})
@@ -175,6 +177,9 @@ endforeach()
list(APPEND QT_QTCORE_LIBRARIES ${Qt5Concurrent_LIBRARIES})
list(APPEND QT_QTCORE_LIBRARY ${Qt5Concurrent_LIBRARIES})
+list(APPEND QT_QTDECLARATIVE_LIBRARIES ${Qt5Quick1_LIBRARIES})
+list(APPEND QT_QTDECLARATIVE_LIBRARY ${Qt5Quick1_LIBRARIES})
+
macro(qt4_wrap_ui)
qt5_wrap_ui(${ARGN})
endmacro()
diff --git a/modules/FindQt5Transitional.cmake b/modules/FindQt5Transitional.cmake
index 3a2e3535..9d04e13f 100644
--- a/modules/FindQt5Transitional.cmake
+++ b/modules/FindQt5Transitional.cmake
@@ -7,6 +7,7 @@ if (QT5_BUILD)
DBus
DBusTools # For macros
Designer
+ Declarative
Script
ScriptTools
Network
@@ -16,6 +17,7 @@ if (QT5_BUILD)
Widgets
PrintSupport
UiTools
+ Quick1
)
find_package(Qt5${_component})
endforeach()