diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2016-04-13 16:36:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-04-22 12:55:44 (GMT) |
commit | 84946c735cc6d2b8f8e014f4772dd602b4a83a16 (patch) | |
tree | f89d262df1f4346f89c1c538dd90669c4d9810be /Tests/QtAutogen/same_name/bbb | |
parent | 9c6fa684e7681417f5e75f25034f28212e22b229 (diff) | |
download | CMake-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/bbb')
-rw-r--r-- | Tests/QtAutogen/same_name/bbb/aaa/data.qrc | 6 | ||||
-rw-r--r-- | Tests/QtAutogen/same_name/bbb/aaa/item.cpp | 12 | ||||
-rw-r--r-- | Tests/QtAutogen/same_name/bbb/aaa/item.hpp | 19 | ||||
-rw-r--r-- | Tests/QtAutogen/same_name/bbb/data.qrc | 6 | ||||
-rw-r--r-- | Tests/QtAutogen/same_name/bbb/item.cpp | 10 | ||||
-rw-r--r-- | Tests/QtAutogen/same_name/bbb/item.hpp | 17 |
6 files changed, 70 insertions, 0 deletions
diff --git a/Tests/QtAutogen/same_name/bbb/aaa/data.qrc b/Tests/QtAutogen/same_name/bbb/aaa/data.qrc new file mode 100644 index 0000000..da98009 --- /dev/null +++ b/Tests/QtAutogen/same_name/bbb/aaa/data.qrc @@ -0,0 +1,6 @@ +<!DOCTYPE RCC><RCC version="1.0"> +<qresource prefix="bbb/aaa/"> + <file>item.hpp</file> + <file>item.cpp</file> +</qresource> +</RCC> diff --git a/Tests/QtAutogen/same_name/bbb/aaa/item.cpp b/Tests/QtAutogen/same_name/bbb/aaa/item.cpp new file mode 100644 index 0000000..36d5b6d --- /dev/null +++ b/Tests/QtAutogen/same_name/bbb/aaa/item.cpp @@ -0,0 +1,12 @@ +#include "item.hpp" + +namespace bbb { +namespace aaa { + +void +Item::go ( ) +{ +} + +} +} diff --git a/Tests/QtAutogen/same_name/bbb/aaa/item.hpp b/Tests/QtAutogen/same_name/bbb/aaa/item.hpp new file mode 100644 index 0000000..35a3686 --- /dev/null +++ b/Tests/QtAutogen/same_name/bbb/aaa/item.hpp @@ -0,0 +1,19 @@ +#ifndef SDB_SDA_ITEM_HPP +#define SDB_SDA_ITEM_HPP + +#include <QObject> + +namespace bbb { +namespace aaa { + +class Item : public QObject +{ + Q_OBJECT + Q_SLOT + void go ( ); +}; + +} +} + +#endif diff --git a/Tests/QtAutogen/same_name/bbb/data.qrc b/Tests/QtAutogen/same_name/bbb/data.qrc new file mode 100644 index 0000000..5b080f5 --- /dev/null +++ b/Tests/QtAutogen/same_name/bbb/data.qrc @@ -0,0 +1,6 @@ +<!DOCTYPE RCC><RCC version="1.0"> +<qresource prefix="bbb/"> + <file>item.hpp</file> + <file>item.cpp</file> +</qresource> +</RCC> diff --git a/Tests/QtAutogen/same_name/bbb/item.cpp b/Tests/QtAutogen/same_name/bbb/item.cpp new file mode 100644 index 0000000..064295b --- /dev/null +++ b/Tests/QtAutogen/same_name/bbb/item.cpp @@ -0,0 +1,10 @@ +#include "item.hpp" + +namespace bbb { + +void +Item::go ( ) +{ +} + +} diff --git a/Tests/QtAutogen/same_name/bbb/item.hpp b/Tests/QtAutogen/same_name/bbb/item.hpp new file mode 100644 index 0000000..eda84a2 --- /dev/null +++ b/Tests/QtAutogen/same_name/bbb/item.hpp @@ -0,0 +1,17 @@ +#ifndef SDB_ITEM_HPP +#define SDB_ITEM_HPP + +#include <QObject> + +namespace bbb { + +class Item : public QObject +{ + Q_OBJECT + Q_SLOT + void go ( ); +}; + +} + +#endif |