summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/AutogenOriginDependsOff/a_qt.cpp
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-11-06 16:38:15 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-11-06 16:38:23 (GMT)
commit7bed0507554bed0208d66610417b690645768503 (patch)
treecc0c6010b6d063a6215358c3fd6ed8ef966e4b5a /Tests/QtAutogen/AutogenOriginDependsOff/a_qt.cpp
parentd80aaad40ba0798861431fda2bf491b07099d87f (diff)
parent47f9c15c60e2898640fa57aed4c5ff5ee5c0d3ef (diff)
downloadCMake-7bed0507554bed0208d66610417b690645768503.zip
CMake-7bed0507554bed0208d66610417b690645768503.tar.gz
CMake-7bed0507554bed0208d66610417b690645768503.tar.bz2
Merge topic 'autogen_origin_depends'
47f9c15c60 Autogen: Update <ORIGIN>_autogen target documentation 336893d9eb Autogen: Separate AUTOGEN_TARGET_DEPENDS tests into own tests suite 846043dd35 Autogen: Rename MocDepends test to AutogenOriginDependsOn b71a9598a4 Autogen: Add test for AUTOGEN_ORIGIN_DEPENDS=OFF f74c406501 Autogen: Add (CMAKE_)AUTOGEN_ORIGIN_DEPENDS release notes 0669de5d36 Autogen: Add (CMAKE_)AUTOGEN_ORIGIN_DEPENDS documentation b5e895b5d4 Autogen: Add (CMAKE_)AUTOGEN_ORIGIN_DEPENDS support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2518
Diffstat (limited to 'Tests/QtAutogen/AutogenOriginDependsOff/a_qt.cpp')
-rw-r--r--Tests/QtAutogen/AutogenOriginDependsOff/a_qt.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/Tests/QtAutogen/AutogenOriginDependsOff/a_qt.cpp b/Tests/QtAutogen/AutogenOriginDependsOff/a_qt.cpp
new file mode 100644
index 0000000..e498969
--- /dev/null
+++ b/Tests/QtAutogen/AutogenOriginDependsOff/a_qt.cpp
@@ -0,0 +1,28 @@
+
+#include "a_qt.hpp"
+#include <a_mc.hpp>
+
+namespace a_qt {
+
+/// @brief A source local QObject based class
+class Source_QObject : public QObject
+{
+ Q_OBJECT
+public:
+ Source_QObject() {}
+ ~Source_QObject() {}
+
+ std::string str;
+};
+
+std::string mocs_compilation()
+{
+ // Create and destroy QObject based classes
+ Header_QObject header_obj;
+ Source_QObject source_obj;
+
+ return std::string(a_mc::mocs_compilation);
+}
+}
+
+#include "a_qt.moc"