summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/cube
diff options
context:
space:
mode:
authorSarah Smith <sarah.j.smith@nokia.com>2011-04-04 20:35:10 +1000
committerSarah Smith <sarah.j.smith@nokia.com>2011-04-04 20:35:10 +1000
commitce4b14604cb967e0b6160afa738420580d4b2cf3 (patch)
tree41aa00b1c04ee8929eec831f44b181b95c885bae /examples/qt3d/cube
parentce5d8672678f64afbdd67b7992362693f516c43d (diff)
Packaging round one done.
See QTBUG-17434 for more details. Packaging on a debian desktop system works. Tested with Ubuntu 10.10 which is currently one of few with Qt 4.7.x packages.
Diffstat (limited to 'examples/qt3d/cube')
-rw-r--r--examples/qt3d/cube/cube.pro15
1 files changed, 13 insertions, 2 deletions
diff --git a/examples/qt3d/cube/cube.pro b/examples/qt3d/cube/cube.pro
index ec2bc6967..09f049182 100644
--- a/examples/qt3d/cube/cube.pro
+++ b/examples/qt3d/cube/cube.pro
@@ -1,7 +1,18 @@
TEMPLATE = app
TARGET = cube
-CONFIG += qt warn_on qt3d
+CONFIG += qt warn_on
+
+!package: CONFIG += qt3d
+
SOURCES = cubeview.cpp main.cpp
HEADERS = cubeview.h
RESOURCES = cube.qrc
-DESTDIR = ../../bin
+
+package {
+ LIBS += -L../../../src/threed -lQt3D
+ INCLUDEPATH += ../../../include
+ target.path += $$[QT_INSTALL_BINS]
+ INSTALLS += target
+} else {
+ DESTDIR = ../../../bin
+}