mirror of https://gitlab.com/ita1024/waf.git
Rework "qt5 demo: add example of unit testing using QtTest"
This commit is contained in:
parent
31da55afb9
commit
82afd0a0e4
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "foo.h"
|
||||
#include <QtTest/QtTest>
|
||||
#include <qtest_widgets.h>
|
||||
|
||||
class TestQt5Test: public QObject {
|
||||
Q_OBJECT
|
||||
|
|
|
@ -36,7 +36,8 @@ def build(bld):
|
|||
# Example of integration of Qt5 Unit tests using Qt5Test using waf_unit_test
|
||||
bld(
|
||||
features = 'qt5 cxx cxxprogram test',
|
||||
use = 'QT5CORE QT5WIDGETS QT5TEST',
|
||||
use = 'QT5CORE QT5GUI QT5WIDGETS QT5TEST',
|
||||
defines = 'QT_WIDGETS_LIB',
|
||||
source = 'foo.cpp testqt5.cpp',
|
||||
moc = 'foo.h',
|
||||
target = 'footest',
|
||||
|
|
Loading…
Reference in New Issue