summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-04-24 19:59:51 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-04-24 19:59:51 (GMT)
commitd395b563ede173721c240df2daad23284f453c4a (patch)
tree84178ad0d725b16b92f84549bd106e05038c90d5 /Source/cmMakefile.h
parent3a8e7599b10806b43179e18c23218fe68a4d2eb5 (diff)
downloadCMake-d395b563ede173721c240df2daad23284f453c4a.zip
CMake-d395b563ede173721c240df2daad23284f453c4a.tar.gz
CMake-d395b563ede173721c240df2daad23284f453c4a.tar.bz2
ENH: Improve internal test handling by creating a test class. Command cmEnableTesting now only sets CMAKE_TESTING_ENABLED and cmAddTest only adds a test to the list. The actual test files are written by local generator. This way we can at some point in the future replace DartTestfile with some XML file
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 75dfb7e..27840fb 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -31,6 +31,7 @@ class cmCommand;
class cmLocalGenerator;
class cmMakeDepend;
class cmSourceFile;
+class cmTest;
class cmVariableWatch;
class cmake;
@@ -642,6 +643,15 @@ public:
*/
void AddMacro(const char* name, const char* signature);
+ ///! Add a new cmTest to the list of tests for this makefile.
+ cmTest* CreateTest(const char* testName);
+
+ /** Get a cmTest pointer for a given test name, if the name is
+ * not found, then a null pointer is returned.
+ */
+ cmTest* GetTest(const char* testName) const;
+ const std::vector<cmTest*> *GetTests() const;
+
/**
* Get a list of macros as a ; separated string
*/
@@ -686,6 +696,9 @@ protected:
cmTargets m_Targets;
std::vector<cmSourceFile*> m_SourceFiles;
+ // Tests
+ std::vector<cmTest*> m_Tests;
+
// The include and link-library paths. These may have order
// dependency, so they must be vectors (not set).
std::vector<std::string> m_IncludeDirectories;