tests.pro 1.16 KB
Newer Older
1
PACKAGENAME = nemo-transfer-engine-qt5
2

3
TEMPLATE = app
4
TARGET = ut_nemo-transfer-engine
5 6
DEPENDPATH += .
INCLUDEPATH += . ../src ../lib
7
CONFIG += link_pkgconfig
8
PKGCONFIG += quillmetadata-qt5
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

# Test files
HEADERS += \
    ut_imageoperation.h \
    ut_mediatransferinterface.h

SOURCES += \
    main.cpp \
    ut_imageoperation.cpp \
    ut_mediatransferinterface.cpp


# Import filess from the actual project
HEADERS += \
    ../lib/imageoperation.h \
    ../lib/mediatransferinterface.h \
    ../lib/mediaitem.h

SOURCES += \
    ../lib/imageoperation.cpp \
    ../lib/mediatransferinterface.cpp \
    ../lib/mediaitem.cpp


QT += testlib

35 36 37 38 39 40 41 42 43 44 45 46 47 48
PATH = /opt/tests/$${PACKAGENAME}

tests_xml.target = tests.xml
tests_xml.depends = $$PWD/tests.xml.in
tests_xml.commands = sed -e "s:@PACKAGENAME@:$${PACKAGENAME}:g" $< > $@

QMAKE_EXTRA_TARGETS = tests_xml
QMAKE_CLEAN += $$tests_xml.target
PRE_TARGETDEPS += $$tests_xml.target

tests_install.depends = tests_xml
tests_install.path = $$PATH
tests_install.files = $$tests_xml.target
tests_install.CONFIG += no_check_exist
49

50
resources.files = images/*.jpg
51
resources.path = $$PATH/images
52

53 54
target.path = $$PATH

55
INSTALLS += target resources tests_install