summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/complex/Adir
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-11-25 14:12:04 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2016-11-29 16:16:33 (GMT)
commitc4d4becf8b79f68534eb8320ccd63218afa4ca31 (patch)
tree8b1bb531cfdb586c6c2729712919f435495bab3a /Tests/QtAutogen/complex/Adir
parent2599f5d64b6d81967de9ba6f11420ec7815f618d (diff)
downloadCMake-c4d4becf8b79f68534eb8320ccd63218afa4ca31.zip
CMake-c4d4becf8b79f68534eb8320ccd63218afa4ca31.tar.gz
CMake-c4d4becf8b79f68534eb8320ccd63218afa4ca31.tar.bz2
QtAutogen tests: Move the complex test case to a subdirectory
Diffstat (limited to 'Tests/QtAutogen/complex/Adir')
-rw-r--r--Tests/QtAutogen/complex/Adir/CMakeLists.txt8
-rw-r--r--Tests/QtAutogen/complex/Adir/libA.cpp12
-rw-r--r--Tests/QtAutogen/complex/Adir/libA.h18
3 files changed, 38 insertions, 0 deletions
diff --git a/Tests/QtAutogen/complex/Adir/CMakeLists.txt b/Tests/QtAutogen/complex/Adir/CMakeLists.txt
new file mode 100644
index 0000000..a1c36ff
--- /dev/null
+++ b/Tests/QtAutogen/complex/Adir/CMakeLists.txt
@@ -0,0 +1,8 @@
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
+
+add_library(libA SHARED libA.cpp)
+target_link_libraries(libA LINK_PUBLIC ${QT_QTCORE_TARGET})
+generate_export_header(libA)
diff --git a/Tests/QtAutogen/complex/Adir/libA.cpp b/Tests/QtAutogen/complex/Adir/libA.cpp
new file mode 100644
index 0000000..f79f24a
--- /dev/null
+++ b/Tests/QtAutogen/complex/Adir/libA.cpp
@@ -0,0 +1,12 @@
+
+#include "libA.h"
+
+LibA::LibA(QObject* parent)
+ : QObject(parent)
+{
+}
+
+int LibA::foo()
+{
+ return 0;
+}
diff --git a/Tests/QtAutogen/complex/Adir/libA.h b/Tests/QtAutogen/complex/Adir/libA.h
new file mode 100644
index 0000000..c4eb9f7
--- /dev/null
+++ b/Tests/QtAutogen/complex/Adir/libA.h
@@ -0,0 +1,18 @@
+
+#ifndef LIBA_H
+#define LIBA_H
+
+#include "liba_export.h"
+
+#include <QObject>
+
+class LIBA_EXPORT LibA : public QObject
+{
+ Q_OBJECT
+public:
+ explicit LibA(QObject* parent = 0);
+
+ int foo();
+};
+
+#endif