diff options
Diffstat (limited to 'tests/testcommon.pri')
-rw-r--r-- | tests/testcommon.pri | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/testcommon.pri b/tests/testcommon.pri index 2b8ed16..85cf2c4 100644 --- a/tests/testcommon.pri +++ b/tests/testcommon.pri @@ -1,10 +1,16 @@ include (testlibs/testlibs.pri) -SOURCES += $$PWD/testlibs/testmain.cpp +!gtest_own_main: SOURCES += $$PWD/testlibs/testmain.cpp CONFIG += testcase CONFIG += c++11 +QT += testlib + +TARGET = tst_$$TESTNAME + +DEFINES += TEST_NAME=$$TARGET + # if there is a common directory above the test, include it exists ($$OUT_PWD/../common/common.pri) { include ($$OUT_PWD/../common/common.pri) |