summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmimetype/qmimetype.pro
blob: 552fefeeed4d6849c602a8351090bb6682c519f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
include(../../../mimetypes-nolibs.pri)
LIBS += -L$$OUT_PWD/../../../src/mimetypes -lQtMimeTypes

TEMPLATE = app

TARGET   = tst_qmimetype
CONFIG   += qtestlib
CONFIG   -= app_bundle

DEPENDPATH += .

QMAKE_CXXFLAGS += -W -Wall -Wextra -Werror -Wshadow -Wno-long-long -Wnon-virtual-dtor

CONFIG += depend_includepath


SOURCES += tst_qmimetype.cpp

HEADERS += tst_qmimetype.h


QMAKE_EXTRA_TARGETS += check
check.depends = $$TARGET
check.commands = LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$$OUT_PWD/../../../src/mimetypes ./$$TARGET -xunitxml -o $${TARGET}.xml

exists($${TARGET}.xml): {
    tests_results.files += $${TARGET}.xml

    unix:!symbian {
        maemo5 {
            tests_results.path = /opt/usr/share/QtMimeTypes-unittests
        } else {
            tests_results.path = /usr/share/QtMimeTypes-unittests
        }
        INSTALLS += tests_results
    }
}

unix:!symbian {
    maemo5 {
        target.path = /opt/usr/lib/QtMimeTypes-tests/qmimetype
    } else {
        target.path = /usr/lib/QtMimeTypes-tests/qmimetype
    }
    INSTALLS += target
}