aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel
diff options
context:
space:
mode:
authorFlorian Boucault <florian.boucault@canonical.com>2016-11-16 10:41:28 +0000
committerBileto Bot <ci-train-bot@canonical.com>2016-11-16 10:41:28 +0000
commit9d914ffc47a1064fc546d01dda2bfe8cf9479c48 (patch)
treec2fb272680b741a0caeb0dd1ecc0c16db729d2c4 /libqmenumodel
parent24f649fed3630e9fbb3c24140dde1b4f9018f4aa (diff)
parentc6bba62bdac1f3cdb20e9bd7a763a2ec03beeb44 (diff)
downloadqmenumodel-9d914ffc47a1064fc546d01dda2bfe8cf9479c48.tar.gz
qmenumodel-9d914ffc47a1064fc546d01dda2bfe8cf9479c48.tar.bz2
qmenumodel-9d914ffc47a1064fc546d01dda2bfe8cf9479c48.zip
Crossbuilding fixes.
Approved by: Marco Trevisan (TreviƱo)
Diffstat (limited to 'libqmenumodel')
-rw-r--r--libqmenumodel/QMenuModel/CMakeLists.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/libqmenumodel/QMenuModel/CMakeLists.txt b/libqmenumodel/QMenuModel/CMakeLists.txt
index 78e062b..eb4d463 100644
--- a/libqmenumodel/QMenuModel/CMakeLists.txt
+++ b/libqmenumodel/QMenuModel/CMakeLists.txt
@@ -24,11 +24,7 @@ qt5_use_modules(qmenumodel-qml Qml Quick)
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
"${CMAKE_CURRENT_BINARY_DIR}/qmldir")
-execute_process(
- COMMAND qmake -query QT_INSTALL_QML
- OUTPUT_VARIABLE QT_IMPORTS_DIR
- OUTPUT_STRIP_TRAILING_WHITESPACE
-)
+set(QT_IMPORTS_DIR "${CMAKE_INSTALL_LIBDIR}/qt5/qml")
set(QMLPLUGIN_INSTALL_PREFIX "${QT_IMPORTS_DIR}/QMenuModel")
install(TARGETS qmenumodel-qml DESTINATION ${QMLPLUGIN_INSTALL_PREFIX})
install(FILES qmldir DESTINATION ${QMLPLUGIN_INSTALL_PREFIX})