aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest/features/qmltestcase.prf
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2011-05-20 11:57:29 +1000
committerCharles Yin <charles.yin@nokia.com>2011-05-20 12:07:23 +1000
commitdaf671b42241533a2db1e598487256d616edf290 (patch)
treeeab238ee6f6e8ec55bf292d23399d0430c31b95f /src/qmltest/features/qmltestcase.prf
parent9bf28fbf0ee26dfde7d6060b10186cfccdcfcd67 (diff)
Integrate QtQuickTest into Qt
Diffstat (limited to 'src/qmltest/features/qmltestcase.prf')
-rw-r--r--src/qmltest/features/qmltestcase.prf25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/qmltest/features/qmltestcase.prf b/src/qmltest/features/qmltestcase.prf
new file mode 100644
index 0000000000..a3d66e659e
--- /dev/null
+++ b/src/qmltest/features/qmltestcase.prf
@@ -0,0 +1,25 @@
+CONFIG += testcase
+
+!symbian {
+ INCLUDEPATH += $$[QT_INSTALL_HEADERS]/QtQuickTest
+} else {
+ load(data_caging_paths)
+
+ INCLUDEPATH+=$$MW_LAYER_PUBLIC_EXPORT_PATH(QtQuickTest)
+}
+
+QT += declarative
+
+win32:CONFIG(debug, debug|release) {
+ LIBS += -lQtQuickTest$${QT_LIBINFIX}d
+} else {
+ LIBS += -lQtQuickTest$${QT_LIBINFIX}
+}
+
+# If the .pro file specified an IMPORTPATH, then add that to
+# the command-line when the test is run.
+!isEmpty(IMPORTPATH) {
+ load(testcase)
+ for(import, IMPORTPATH): check.commands += -import \"$$import\"
+}
+DEFINES += QUICK_TEST_SOURCE_DIR=\"\\\"$$OUT_PWD\\\"\"