summaryrefslogtreecommitdiffstats
path: root/Tests/Complex/Executable/complex.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-12-13 22:35:00 (GMT)
committerBrad King <brad.king@kitware.com>2002-12-13 22:35:00 (GMT)
commit526649127e5e19076d7837d15095f47c64015fb5 (patch)
tree743b7352790675cf9713db73f00ba1f1839e45dd /Tests/Complex/Executable/complex.cxx
parent4cbcd08594697a77aa7d619169706e62e01a07e2 (diff)
downloadCMake-526649127e5e19076d7837d15095f47c64015fb5.zip
CMake-526649127e5e19076d7837d15095f47c64015fb5.tar.gz
CMake-526649127e5e19076d7837d15095f47c64015fb5.tar.bz2
ENH: Added test for generated header included by non-generated source.
Diffstat (limited to 'Tests/Complex/Executable/complex.cxx')
-rw-r--r--Tests/Complex/Executable/complex.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx
index 7aa4140..d6d3839 100644
--- a/Tests/Complex/Executable/complex.cxx
+++ b/Tests/Complex/Executable/complex.cxx
@@ -1,5 +1,6 @@
#include "cmTestConfigure.h"
#include "cmTestConfigureEscape.h"
+#include "cmTestGeneratedHeader.h"
#include "cmVersion.h"
#include "ExtraSources/file1.h"
#include "file2.h"
@@ -808,6 +809,12 @@ int main()
#else
cmFailed("IF inside a FOREACH block is broken");
#endif
+
+#if defined(GENERATED_HEADER_INCLUDED)
+ cmPassed("Generated header included by non-generated source works.");
+#else
+ cmFailed("Generated header included by non-generated source failed.");
+#endif
#ifdef FORCE_TEST
cmFailed("CMake SET CACHE FORCE");