summaryrefslogtreecommitdiff
path: root/examples/wayland/custom-extension
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@theqtcompany.com>2015-10-28 10:19:37 +0100
committerPaul Olav Tvete <paul.tvete@theqtcompany.com>2015-11-04 10:32:24 +0000
commitdd9324db806466dde409750e7de17d9e327865e3 (patch)
tree463790b20a9b4222661e34dc0c8fd48d595f0f0d /examples/wayland/custom-extension
parent74b067acfe3ff4093fd7c1724ef1405731bae5e5 (diff)
downloadqtwayland-dd9324db806466dde409750e7de17d9e327865e3.tar.gz
Add install targets for new examples.
Change-Id: Ibb4ae57d82a86d5fc74679c628a5c7a9b100f71d Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'examples/wayland/custom-extension')
-rw-r--r--examples/wayland/custom-extension/compositor/compositor.pro3
-rw-r--r--examples/wayland/custom-extension/testapp/main.cpp3
-rw-r--r--examples/wayland/custom-extension/testapp/testapp.pro3
3 files changed, 8 insertions, 1 deletions
diff --git a/examples/wayland/custom-extension/compositor/compositor.pro b/examples/wayland/custom-extension/compositor/compositor.pro
index f38b1ecb..4ffafdb8 100644
--- a/examples/wayland/custom-extension/compositor/compositor.pro
+++ b/examples/wayland/custom-extension/compositor/compositor.pro
@@ -29,3 +29,6 @@ TARGET = custom-compositor
HEADERS += \
customextension.h
+
+target.path = $$[QT_INSTALL_EXAMPLES]/wayland/custom-extension/compositor
+INSTALLS += target
diff --git a/examples/wayland/custom-extension/testapp/main.cpp b/examples/wayland/custom-extension/testapp/main.cpp
index 4ff44b7f..59738128 100644
--- a/examples/wayland/custom-extension/testapp/main.cpp
+++ b/examples/wayland/custom-extension/testapp/main.cpp
@@ -98,7 +98,8 @@ int main (int argc, char **argv)
s_custom = app.findChild<QObject*>("qt_example_custom_extension");
if (!s_custom) {
- qCritical() << "This example requires the Qt Custom Extension platform plugin";
+ qCritical() << "This example requires the Qt Custom Extension platform plugin,\n"
+ "add -platform custom-wayland to the command line";
return -1;
}
TestWindow window;
diff --git a/examples/wayland/custom-extension/testapp/testapp.pro b/examples/wayland/custom-extension/testapp/testapp.pro
index 8424f3bf..062210e9 100644
--- a/examples/wayland/custom-extension/testapp/testapp.pro
+++ b/examples/wayland/custom-extension/testapp/testapp.pro
@@ -1,3 +1,6 @@
SOURCES += main.cpp
CONFIG += c++11
+
+target.path = $$[QT_INSTALL_EXAMPLES]/wayland/custom-extension/testapp
+INSTALLS += target