aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/QMenuModel
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-05 13:17:59 +0200
committerOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-05 13:17:59 +0200
commit8c515504fc8089b5ea3f18825c90cad9b1da2ad8 (patch)
tree66188fb95ab809f489ba9855d162c48c5a333b70 /libqmenumodel/QMenuModel
parent81dbf09d988d87f82496ba106b5f1dd2aad7967d (diff)
downloadqmenumodel-8c515504fc8089b5ea3f18825c90cad9b1da2ad8.tar.gz
qmenumodel-8c515504fc8089b5ea3f18825c90cad9b1da2ad8.tar.bz2
qmenumodel-8c515504fc8089b5ea3f18825c90cad9b1da2ad8.zip
Fix packaging for Qt5.
Diffstat (limited to 'libqmenumodel/QMenuModel')
-rw-r--r--libqmenumodel/QMenuModel/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/libqmenumodel/QMenuModel/CMakeLists.txt b/libqmenumodel/QMenuModel/CMakeLists.txt
index 1a52ea0..fbc448e 100644
--- a/libqmenumodel/QMenuModel/CMakeLists.txt
+++ b/libqmenumodel/QMenuModel/CMakeLists.txt
@@ -41,6 +41,9 @@ target_link_libraries(qmenumodel-qml
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
"${CMAKE_CURRENT_BINARY_DIR}/qmldir")
+# Apparently, QT_IMPORTS_DIR didn’t make it to Qt5.
+# In want of a better solution, let’s hardcode it…
+set(QT_IMPORTS_DIR /opt/qt5/imports)
set(QMLPLUGIN_INSTALL_PREFIX "${QT_IMPORTS_DIR}/QMenuModel")
install(TARGETS qmenumodel-qml DESTINATION ${QMLPLUGIN_INSTALL_PREFIX})
install(FILES qmldir DESTINATION ${QMLPLUGIN_INSTALL_PREFIX})