summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/skipMoc.cpp
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-12-31 09:25:38 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-01-10 11:49:16 (GMT)
commit8dbdd3e726ead25c179e6eb4ffab212a1db3aba8 (patch)
tree25955cdfe99ed04ed2ceaa62d5bc074533b2dfe1 /Tests/QtAutogen/skipMoc.cpp
parent0699760d5c8b644242ddd4ac6d07d8c4c68f2b94 (diff)
downloadCMake-8dbdd3e726ead25c179e6eb4ffab212a1db3aba8.zip
CMake-8dbdd3e726ead25c179e6eb4ffab212a1db3aba8.tar.gz
CMake-8dbdd3e726ead25c179e6eb4ffab212a1db3aba8.tar.bz2
AUTOGEN: Tests: AUTOMOC SKIP_AUTOMOC and SKIP_AUTOGEN test
Diffstat (limited to 'Tests/QtAutogen/skipMoc.cpp')
-rw-r--r--Tests/QtAutogen/skipMoc.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/QtAutogen/skipMoc.cpp b/Tests/QtAutogen/skipMoc.cpp
new file mode 100644
index 0000000..85305f5
--- /dev/null
+++ b/Tests/QtAutogen/skipMoc.cpp
@@ -0,0 +1,14 @@
+
+#include "skipSource/qItemA.hpp"
+#include "skipSource/qItemB.hpp"
+#include "skipSource/qItemC.hpp"
+
+int main(int, char**)
+{
+ QItemA itemA;
+ QItemA itemB;
+ QItemA itemC;
+
+ // Fails to link if the symbol is not present.
+ return 0;
+}