summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/same_name/main.cpp
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-04-13 16:36:39 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-22 12:55:44 (GMT)
commit84946c735cc6d2b8f8e014f4772dd602b4a83a16 (patch)
treef89d262df1f4346f89c1c538dd90669c4d9810be /Tests/QtAutogen/same_name/main.cpp
parent9c6fa684e7681417f5e75f25034f28212e22b229 (diff)
downloadCMake-84946c735cc6d2b8f8e014f4772dd602b4a83a16.zip
CMake-84946c735cc6d2b8f8e014f4772dd602b4a83a16.tar.gz
CMake-84946c735cc6d2b8f8e014f4772dd602b4a83a16.tar.bz2
Tests: QtAutogen: Same source name in different directories test
The test features multiple .cpp and .qrc files with the same name in different subdirectories. This requires AUTOMOC and AUTORCC to generate files with names that respect the path information of the source files.
Diffstat (limited to 'Tests/QtAutogen/same_name/main.cpp')
-rw-r--r--Tests/QtAutogen/same_name/main.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/QtAutogen/same_name/main.cpp b/Tests/QtAutogen/same_name/main.cpp
new file mode 100644
index 0000000..166466e
--- /dev/null
+++ b/Tests/QtAutogen/same_name/main.cpp
@@ -0,0 +1,16 @@
+#include "aaa/item.hpp"
+#include "aaa/bbb/item.hpp"
+#include "bbb/item.hpp"
+#include "bbb/aaa/item.hpp"
+#include "ccc/item.hpp"
+
+int main(int argv, char **args)
+{
+ // Object instances
+ ::aaa::Item aaa_item;
+ ::aaa::bbb::Item aaa_bbb_item;
+ ::bbb::Item bbb_item;
+ ::bbb::aaa::Item bbb_aaa_item;
+ ::ccc::Item ccc_item;
+ return 0;
+}