summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/examples-common/examples-common.pri
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2016-01-14 08:43:34 +0100
committerSean Harmer <sean.harmer@kdab.com>2016-01-16 01:59:44 +0000
commit8dcd8e42458748ca3ae3293b3d2b7e5b56b87252 (patch)
treeb4a63f6bd0665e9cdeb64ebdb9caaded12be16ff /examples/qt3d/examples-common/examples-common.pri
parent78ad6123fb4f8597eb936e2c4b1636d307df4ecc (diff)
Link examples against static lib
Contains: Qt3DWindow Qt3DQuickWindow QFirstPersonCameraController FirstPersonCameraController.qml This will allow to get rid of the Camera configuration hack Change-Id: I55c5634aa4c162f9dd2852d3258073a6352b426c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/qt3d/examples-common/examples-common.pri')
-rw-r--r--examples/qt3d/examples-common/examples-common.pri20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/qt3d/examples-common/examples-common.pri b/examples/qt3d/examples-common/examples-common.pri
new file mode 100644
index 000000000..e50e39edd
--- /dev/null
+++ b/examples/qt3d/examples-common/examples-common.pri
@@ -0,0 +1,20 @@
+QT += 3dcore 3drender 3dinput 3dlogic qml
+
+INCLUDEPATH += $$PWD
+
+win32 {
+ build_pass {
+ CONFIG(debug, debug|release) {
+ common_static_lib = $$OUT_PWD/../examples-common/debug/$${QMAKE_PREFIX_STATICLIB}examples-common.$${QMAKE_EXTENSION_STATICLIB}
+ } else {
+ common_static_lib = $$OUT_PWD/../examples-common/release/$${QMAKE_PREFIX_STATICLIB}examples-common.$${QMAKE_EXTENSION_STATICLIB}
+ }
+ }
+} else {
+ common_static_lib = $$OUT_PWD/../examples-common/$${QMAKE_PREFIX_STATICLIB}examples-common.$${QMAKE_EXTENSION_STATICLIB}
+}
+
+LIBS += $$common_static_lib
+PRE_TARGETDEPS += $$common_static_lib
+
+RESOURCES += $$OUT_PWD/../examples-common/examples-common.qrc