summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/multimedia/devices/CMakeLists.txt4
-rw-r--r--examples/multimedia/devices/devices.pro2
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/multimedia/devices/CMakeLists.txt b/examples/multimedia/devices/CMakeLists.txt
index 3e19c12ec..b617066d3 100644
--- a/examples/multimedia/devices/CMakeLists.txt
+++ b/examples/multimedia/devices/CMakeLists.txt
@@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 3.16)
project(devices LANGUAGES CXX)
+if(ANDROID OR IOS)
+ message(FATAL_ERROR "This is a commandline tool that is not supported on mobile platforms")
+endif()
+
set(CMAKE_AUTOMOC ON)
if(NOT DEFINED INSTALL_EXAMPLESDIR)
diff --git a/examples/multimedia/devices/devices.pro b/examples/multimedia/devices/devices.pro
index a03166ca4..bbc5ecea8 100644
--- a/examples/multimedia/devices/devices.pro
+++ b/examples/multimedia/devices/devices.pro
@@ -1,3 +1,5 @@
+android|ios: error("This is a commandline tool that is not supported on mobile platforms")
+
TEMPLATE = app
TARGET = devices