aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tutorials
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2012-11-22 11:33:28 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-22 14:10:05 +0100
commitaba67cc3f020f03d8ed8ef5303d413044031bc58 (patch)
tree7eedf57d46e6d1cb0223d8e6e455011cf914a0f1 /examples/tutorials
parent8fc95e65e77328c995ef4a3a633a95c86f5e0bdf (diff)
Fix installation of examples.
Enable examples to be built in the target tree. This entails installing the project files and possibly other missing stuff. Task-number: QTBUG-27977 Change-Id: I159fd8e3ebc7077e1d68e085c4947acc058ce594 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'examples/tutorials')
-rw-r--r--examples/tutorials/gettingStartedQml/filedialog/filedialog.pro5
-rw-r--r--examples/tutorials/gettingStartedQml/gettingStartedQml.pro4
-rw-r--r--examples/tutorials/tutorials.pro5
3 files changed, 14 insertions, 0 deletions
diff --git a/examples/tutorials/gettingStartedQml/filedialog/filedialog.pro b/examples/tutorials/gettingStartedQml/filedialog/filedialog.pro
index 85edb40257..36ae0fc7f4 100644
--- a/examples/tutorials/gettingStartedQml/filedialog/filedialog.pro
+++ b/examples/tutorials/gettingStartedQml/filedialog/filedialog.pro
@@ -15,3 +15,8 @@ HEADERS += directory.h \
SOURCES += directory.cpp \
file.cpp \
dialogPlugin.cpp
+
+target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/tutorials/gettingStartedQml/filedialog
+sources.files = $$SOURCES $$HEADERS filedialog.pro
+sources.path = $$target.path
+INSTALLS = sources target
diff --git a/examples/tutorials/gettingStartedQml/gettingStartedQml.pro b/examples/tutorials/gettingStartedQml/gettingStartedQml.pro
index aa5306cceb..10ce079896 100644
--- a/examples/tutorials/gettingStartedQml/gettingStartedQml.pro
+++ b/examples/tutorials/gettingStartedQml/gettingStartedQml.pro
@@ -2,3 +2,7 @@ TEMPLATE = subdirs
SUBDIRS = \
filedialog\
+# install
+sources.files = gettingStartedQml.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtquick/tutorials/gettingStartedQml
+INSTALLS += sources
diff --git a/examples/tutorials/tutorials.pro b/examples/tutorials/tutorials.pro
index 0893449746..9cb5c57c3f 100644
--- a/examples/tutorials/tutorials.pro
+++ b/examples/tutorials/tutorials.pro
@@ -1,2 +1,7 @@
TEMPLATE = subdirs
SUBDIRS += gettingStartedQml
+
+# install
+sources.files = tutorials.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtquick/tutorials
+INSTALLS += sources