summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qttest_p4.prf
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2009-03-23 09:34:13 (GMT)
committerSimon Hausmann <simon.hausmann@nokia.com>2009-03-23 09:34:13 (GMT)
commit67ad0519fd165acee4a4d2a94fa502e9e4847bd0 (patch)
tree1dbf50b3dff8d5ca7e9344733968c72704eb15ff /mkspecs/features/qttest_p4.prf
downloadQt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.zip
Qt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.tar.gz
Qt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.tar.bz2
Long live Qt!
Diffstat (limited to 'mkspecs/features/qttest_p4.prf')
-rw-r--r--mkspecs/features/qttest_p4.prf28
1 files changed, 28 insertions, 0 deletions
diff --git a/mkspecs/features/qttest_p4.prf b/mkspecs/features/qttest_p4.prf
new file mode 100644
index 0000000..e9d79b0
--- /dev/null
+++ b/mkspecs/features/qttest_p4.prf
@@ -0,0 +1,28 @@
+isEmpty(TEMPLATE):TEMPLATE=app
+CONFIG += qt warn_on console depend_includepath
+
+qtAddLibrary(QtTest)
+
+# prefix test binary with tst_
+!contains(TARGET, ^tst_.*):TARGET = $$join(TARGET,,"tst_")
+
+########################################################################
+# Use install rule to run test application.
+# This lets you do 'make install' on a test to both build and run it,
+# and lets you easily build and run all tests from the parent directory.
+# ----------------------------------------------------------------------
+
+runme.files =
+runme.path = .
+!isEmpty(DESTDIR): runme.commands = cd ./$(DESTDIR) &&
+macx: runme.commands += ./$(QMAKE_TARGET).app/Contents/MacOS/$(QMAKE_TARGET)
+else:unix: runme.commands += ./$(QMAKE_TARGET)
+else:win32: {
+ CONFIG(debug, debug|release):runme.commands += debug\\$(QMAKE_TARGET)
+ else:runme.commands += release\\$(QMAKE_TARGET)
+}
+embedded: runme.commands += -qws
+INSTALLS += runme
+
+
+########################################################################