Use build-time define to set the path to the source files directory. Which then can be used to format path to the test data. This allows running tests from out-of-source-tree -builds that e.g. QtCreator does.
16 lines
243 B
Prolog
16 lines
243 B
Prolog
TEMPLATE = app
|
|
TARGET = test-xmlreportv2
|
|
DEPENDPATH += .
|
|
INCLUDEPATH += .
|
|
OBJECTS_DIR = ../build
|
|
MOC_DIR = ../build
|
|
|
|
include(../common.pri)
|
|
|
|
DEFINES += SRCDIR=\\\"$$PWD\\\"
|
|
|
|
# tests
|
|
SOURCES += testxmlreportv2.cpp
|
|
|
|
HEADERS += testxmlreportv2.h
|