diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-12-08 16:09:30 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-12-13 12:48:27 (GMT) |
commit | 227a7974f426e0966d1736c66dd606b068985d1b (patch) | |
tree | 1b0048d6c54e4c0d88c1313bc6bc30c3f0c18610 /Tests/QtAutogen/DefinesTest/defines_test.cpp | |
parent | bd10c3cf82f6e9d58b121498eaa2b9d8cc19dd2f (diff) | |
download | CMake-227a7974f426e0966d1736c66dd606b068985d1b.zip CMake-227a7974f426e0966d1736c66dd606b068985d1b.tar.gz CMake-227a7974f426e0966d1736c66dd606b068985d1b.tar.bz2 |
Autogen: Tests: Add basic scripts for separate tests
Diffstat (limited to 'Tests/QtAutogen/DefinesTest/defines_test.cpp')
-rw-r--r-- | Tests/QtAutogen/DefinesTest/defines_test.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Tests/QtAutogen/DefinesTest/defines_test.cpp b/Tests/QtAutogen/DefinesTest/defines_test.cpp new file mode 100644 index 0000000..cf4e9cb --- /dev/null +++ b/Tests/QtAutogen/DefinesTest/defines_test.cpp @@ -0,0 +1,38 @@ + +#include <QObject> + +#ifdef QT_GUI_LIB +#include <QTextDocument> + +class SomeDocument : public QTextDocument +{ + Q_OBJECT + +Q_SIGNALS: + void someSig(); +}; +#endif + +#ifdef QT_CORE_LIB +class SomeObject : public QObject +{ + Q_OBJECT + +Q_SIGNALS: + void someSig(); +}; +#endif + +int main(int argc, char** argv) +{ +#ifdef QT_CORE_LIB + QMetaObject sosmo = SomeObject::staticMetaObject; +#endif +#ifdef QT_GUI_LIB + QMetaObject sdsmo = SomeDocument::staticMetaObject; +#endif + + return 0; +} + +#include "defines_test.moc" |