summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/generated.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-03-05 12:43:50 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-03-10 12:01:29 (GMT)
commit112cba927abfd54e72d12831dc668148c1465446 (patch)
tree89417c300dfbd26331acea28fbc00dfd21b66ffd /Tests/QtAutogen/generated.h
parent948d5d18fd6deed24ede54cb0e3b017511f99559 (diff)
downloadCMake-112cba927abfd54e72d12831dc668148c1465446.zip
CMake-112cba927abfd54e72d12831dc668148c1465446.tar.gz
CMake-112cba927abfd54e72d12831dc668148c1465446.tar.bz2
QtAutogen: Fix AUTOGEN depends on custom command output with VS.
Visual Studio is handled as a special case for autogen depends. However, the special handling works only for target dependencies, not file dependencies output by a custom command. Use a PRE_BUILD step only if all depends are targets.
Diffstat (limited to 'Tests/QtAutogen/generated.h')
-rw-r--r--Tests/QtAutogen/generated.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/QtAutogen/generated.h b/Tests/QtAutogen/generated.h
index dd22489..b6c2711 100644
--- a/Tests/QtAutogen/generated.h
+++ b/Tests/QtAutogen/generated.h
@@ -5,11 +5,12 @@
#include <QObject>
#include "myinterface.h"
+#include "myotherinterface.h"
-class Generated : public QObject, MyInterface
+class Generated : public QObject, MyInterface, MyOtherInterface
{
Q_OBJECT
- Q_INTERFACES(MyInterface)
+ Q_INTERFACES(MyInterface MyOtherInterface)
public:
explicit Generated(QObject *parent = 0);
};