summaryrefslogtreecommitdiffstats
path: root/unittests/unittests.pro
diff options
context:
space:
mode:
authorWolf-Michael Bolle <wolf-michael.bolle@nokia.com>2011-08-29 13:07:40 -0500
committerMarius Storm-Olsen <marius.storm-olsen@nokia.com>2011-08-29 13:46:58 -0500
commite28dbe2ebabc9f590c99e955e9e8e7f870a6b842 (patch)
treef08c1682e54fe3330d0d972f69920f67684b243c /unittests/unittests.pro
Initial commit of QtAddonMimetype
Diffstat (limited to 'unittests/unittests.pro')
-rw-r--r--unittests/unittests.pro31
1 files changed, 31 insertions, 0 deletions
diff --git a/unittests/unittests.pro b/unittests/unittests.pro
new file mode 100644
index 0000000..88a7ac7
--- /dev/null
+++ b/unittests/unittests.pro
@@ -0,0 +1,31 @@
+CONFIG += qtestlib
+TEMPLATE = app
+TARGET = tst_mimetypes
+DEPENDPATH += .
+
+QMAKE_CXXFLAGS += -W -Wall -Wextra -Werror -ansi -pedantic -Wshadow -Wno-long-long -Wnon-virtual-dtor -Wc++0x-compat
+
+# dependency management
+QMAKE_CXXFLAGS += -MMD
+include_dependencies.target = include_dependencies
+include_dependencies.commands = @if grep \"^include \\*.d\" Makefile >/dev/null 2>&1; then echo \"Dependency files are already included.\"; else echo \"include *.d\" >> Makefile; echo \"Please rerun make because dependency files will be included next time.\"; fi
+QMAKE_EXTRA_TARGETS += include_dependencies
+POST_TARGETDEPS += include_dependencies
+
+# runtime environment
+LIBS += -L ../lib -lqt-mimetypes
+
+
+API_DIR = ..
+
+INCLUDEPATH += $$API_DIR/src/mimetypes $$API_DIR/unittests
+
+
+SOURCES += tst_mimetypes-empty.cpp
+
+HEADERS += $$API_DIR/unittests/tst_mimetypes.h
+
+
+QMAKE_EXTRA_TARGETS += check
+check.depends = $$TARGET
+check.commands = ./$$TARGET -xunitxml -o unitTestResults.xml