summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-02-18 15:07:56 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-02-18 15:07:56 (GMT)
commit135a0df525851e6fd35efc74c4b86309dfc381de (patch)
treeba89f02b328add42dcc42f80cef4734471d5694a /Tests
parentede2a6ea6b6ff201ea1b2e2f7943b301a28b1df5 (diff)
parent9beb2744d7685fca9cd5717308d4457dffdefcdc (diff)
downloadCMake-135a0df525851e6fd35efc74c4b86309dfc381de.zip
CMake-135a0df525851e6fd35efc74c4b86309dfc381de.tar.gz
CMake-135a0df525851e6fd35efc74c4b86309dfc381de.tar.bz2
Merge topic 'automoc-src-per-dir'
9beb2744 Automoc: Fix support of files with the same name (#12873)
Diffstat (limited to 'Tests')
-rw-r--r--Tests/QtAutogen/Adir/CMakeLists.txt2
-rw-r--r--Tests/QtAutogen/Adir/bar/foo.cpp4
-rw-r--r--Tests/QtAutogen/Adir/bar/foo.h10
-rw-r--r--Tests/QtAutogen/Adir/foo.cpp4
-rw-r--r--Tests/QtAutogen/Adir/foo.h8
5 files changed, 27 insertions, 1 deletions
diff --git a/Tests/QtAutogen/Adir/CMakeLists.txt b/Tests/QtAutogen/Adir/CMakeLists.txt
index a1c36ff..0c7848d 100644
--- a/Tests/QtAutogen/Adir/CMakeLists.txt
+++ b/Tests/QtAutogen/Adir/CMakeLists.txt
@@ -3,6 +3,6 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
-add_library(libA SHARED libA.cpp)
+add_library(libA SHARED libA.cpp foo.cpp bar/foo.cpp)
target_link_libraries(libA LINK_PUBLIC ${QT_QTCORE_TARGET})
generate_export_header(libA)
diff --git a/Tests/QtAutogen/Adir/bar/foo.cpp b/Tests/QtAutogen/Adir/bar/foo.cpp
new file mode 100644
index 0000000..3f5e0a9
--- /dev/null
+++ b/Tests/QtAutogen/Adir/bar/foo.cpp
@@ -0,0 +1,4 @@
+#include "foo.h"
+
+bar::foo::foo() {}
+bar::foo::~foo() {}
diff --git a/Tests/QtAutogen/Adir/bar/foo.h b/Tests/QtAutogen/Adir/bar/foo.h
new file mode 100644
index 0000000..daf2367
--- /dev/null
+++ b/Tests/QtAutogen/Adir/bar/foo.h
@@ -0,0 +1,10 @@
+#include <QObject>
+
+namespace bar {
+ class foo: public QObject {
+ Q_OBJECT
+ public:
+ foo();
+ ~foo();
+ };
+}
diff --git a/Tests/QtAutogen/Adir/foo.cpp b/Tests/QtAutogen/Adir/foo.cpp
new file mode 100644
index 0000000..86e4d8e
--- /dev/null
+++ b/Tests/QtAutogen/Adir/foo.cpp
@@ -0,0 +1,4 @@
+#include "foo.h"
+
+foo::foo() {}
+foo::~foo() {}
diff --git a/Tests/QtAutogen/Adir/foo.h b/Tests/QtAutogen/Adir/foo.h
new file mode 100644
index 0000000..a51960c
--- /dev/null
+++ b/Tests/QtAutogen/Adir/foo.h
@@ -0,0 +1,8 @@
+#include <QObject>
+
+class foo: public QObject {
+ Q_OBJECT
+public:
+ foo();
+ ~foo();
+};