diff options
author | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2015-08-20 15:25:22 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2015-11-02 12:28:15 +0000 |
commit | 681ff5542ca4d2405d19ddd9809b0a8cf2d697e8 (patch) | |
tree | 9b8359f55fb749a3e9575501a612cf12b9ca78e8 /tests/testcommon.pri | |
parent | 7b2433fd6fefe7642268da3aa270bbc86e81a7b8 (diff) |
In order to work with the new CI system, we need to link with testlib.
Change-Id: I285d651c2e1189a79153a6d942c10522305f2f3c
Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
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) |