summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutomoc/libC.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-02-07 18:35:00 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-02-08 11:54:27 (GMT)
commit4de71786e89ba35190e23ae9e1c05f902c5350ff (patch)
treea29da4eca9becfab9a0b7b34f7ebeb23ec96b082 /Tests/QtAutomoc/libC.h
parentdf74bc34d4219a8d6e63ec7e41a9ca4fbe355581 (diff)
downloadCMake-4de71786e89ba35190e23ae9e1c05f902c5350ff.zip
CMake-4de71786e89ba35190e23ae9e1c05f902c5350ff.tar.gz
CMake-4de71786e89ba35190e23ae9e1c05f902c5350ff.tar.bz2
Ensure that the build interface includes have been added.
This is needed in the case that Automoc is used, as that calls GetIncludeDirectories, which may cache the resulting include dirs too early in the generate step. Also, because the automoc step is so early, we can't cache the include directories at that point. At that point the build interface of all dependencies are not populated yet, so we'd be caching the includes before appending the build interface. Only start caching when we're definitely generating the buildsystem. At that point, the includes should be stable. We still need to invoke AppendBuildInterfaceIncludes in the GlobalGenerator because the build interface includes affect mostly the dependencies of targets (such as the automoc targets), rather than the targets themselves, so the build interface needs to be appended for all targets before generation is done.
Diffstat (limited to 'Tests/QtAutomoc/libC.h')
-rw-r--r--Tests/QtAutomoc/libC.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/Tests/QtAutomoc/libC.h b/Tests/QtAutomoc/libC.h
new file mode 100644
index 0000000..4fb4a2c
--- /dev/null
+++ b/Tests/QtAutomoc/libC.h
@@ -0,0 +1,22 @@
+
+#ifndef LIBC_H
+#define LIBC_H
+
+#include "libc_export.h"
+
+#include <QObject>
+#include "libB.h"
+
+class LIBC_EXPORT LibC : public QObject
+{
+ Q_OBJECT
+public:
+ explicit LibC(QObject *parent = 0);
+
+
+ int foo();
+private:
+ LibB b;
+};
+
+#endif