Commit 8e5bfbc0 authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr Committed by Torsten Rahn
Browse files

Provide BUILD_TOUCH option to force install of touch variant

Otherwise the executable is getting missed during packaging.
parent 3d61a273
......@@ -77,6 +77,10 @@ include( MarbleMacros )
# if this option is set, srtm.jpg will not be installed but the generated tiles instead
option(MOBILE "Create a Marble version optimized for handheld devices")
####################################################
# Provide opt-in switch for mobile variant, which is not only useful for Android.
option(BUILD_TOUCH "Build touch-friendly Marble version (on Android this option is bypassed)" OFF)
####################################################
# Build a D-Bus interface for the Marble widget
# This is disabled by default for all win32, apple and Android
......
......@@ -39,6 +39,10 @@ target_link_libraries (
marble-maps
marbledeclarative
)
FILE(GLOB QML_FILES *.qml)
add_custom_target(marble-maps_resources ALL SOURCES ${QML_FILES} package/AndroidManifest.xml)
if(ANDROID)
FILE(GLOB QML_FILES *.qml)
add_custom_target(marble-maps_resources ALL SOURCES ${QML_FILES} package/AndroidManifest.xml)
elseif(BUILD_TOUCH)
install(TARGETS marble-maps RUNTIME DESTINATION bin)
install(PROGRAMS org.kde.marble.maps.desktop DESTINATION ${KDE_INSTALL_APPDIR})
endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment