summaryrefslogtreecommitdiffstats
path: root/Source/cmTest.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-03-16 14:51:30 (GMT)
committerBrad King <brad.king@kitware.com>2009-03-16 14:51:30 (GMT)
commit9862f383d09018cd9e14a6054c03b508c0ef3afa (patch)
treeb68b27adc864c2e0cfc5eab806b18b3ee223745c /Source/cmTest.h
parent606e6ff9cd2d1ab6a242a38e0c3f6df7167fdff8 (diff)
downloadCMake-9862f383d09018cd9e14a6054c03b508c0ef3afa.zip
CMake-9862f383d09018cd9e14a6054c03b508c0ef3afa.tar.gz
CMake-9862f383d09018cd9e14a6054c03b508c0ef3afa.tar.bz2
ENH: Add NAME mode to ADD_TEST command
This creates command mode add_test(NAME ...). This signature is extensible with more keyword arguments later. The main purpose is to enable automatic replacement of target names with built target file locations. A side effect of this feature is support for tests that only run under specific configurations.
Diffstat (limited to 'Source/cmTest.h')
-rw-r--r--Source/cmTest.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmTest.h b/Source/cmTest.h
index 521981d..0d601ec 100644
--- a/Source/cmTest.h
+++ b/Source/cmTest.h
@@ -63,11 +63,17 @@ public:
void SetMakefile(cmMakefile *mf);
cmMakefile *GetMakefile() { return this->Makefile;};
+ /** Get/Set whether this is an old-style test. */
+ bool GetOldStyle() const { return this->OldStyle; }
+ void SetOldStyle(bool b) { this->OldStyle = b; }
+
private:
cmPropertyMap Properties;
cmStdString Name;
std::vector<std::string> Command;
+ bool OldStyle;
+
// The cmMakefile instance that owns this target. This should
// always be set.
cmMakefile* Makefile;