diff options
author | Brad King <brad.king@kitware.com> | 2009-03-16 14:40:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-03-16 14:40:46 (GMT) |
commit | 66d69f864ae880f556debf02e66dee4855b0f2df (patch) | |
tree | 562a710c7c071a8dbfd83a15abd35e3a62ec4681 /Source/cmMakefile.h | |
parent | e67f5138b80b3b04844f3f5c0a3c69796266f9e6 (diff) | |
download | CMake-66d69f864ae880f556debf02e66dee4855b0f2df.zip CMake-66d69f864ae880f556debf02e66dee4855b0f2df.tar.gz CMake-66d69f864ae880f556debf02e66dee4855b0f2df.tar.bz2 |
ENH: Refactor generation of CTestTestfile content
This moves code which generates ADD_TEST and SET_TESTS_PROPERTIES calls
into CTestTestfile.cmake files out of cmLocalGenerator and into a
cmTestGenerator class. This will allow more advanced generation without
cluttering cmLocalGenerator. The cmTestGenerator class derives from
cmScriptGenerator to get support for per-configuration script
generation (not yet enabled).
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 51136f1..5efe2d9 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -41,6 +41,7 @@ class cmLocalGenerator; class cmMakeDepend; class cmSourceFile; class cmTest; +class cmTestGenerator; class cmVariableWatch; class cmake; class cmMakefileCall; @@ -769,7 +770,6 @@ public: * 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 @@ -805,6 +805,11 @@ public: std::vector<cmInstallGenerator*>& GetInstallGenerators() { return this->InstallGenerators; } + void AddTestGenerator(cmTestGenerator* g) + { if(g) this->TestGenerators.push_back(g); } + std::vector<cmTestGenerator*>& GetTestGenerators() + { return this->TestGenerators; } + // Define the properties static void DefineProperties(cmake *cm); @@ -850,7 +855,6 @@ protected: // Tests std::map<cmStdString, cmTest*> Tests; - std::vector<cmTest*> OrderedTests; // The include and link-library paths. These may have order // dependency, so they must be vectors (not set). @@ -868,6 +872,7 @@ protected: cmTarget::LinkLibraryVectorType LinkLibraries; std::vector<cmInstallGenerator*> InstallGenerators; + std::vector<cmTestGenerator*> TestGenerators; std::string IncludeFileRegularExpression; std::string ComplainFileRegularExpression; |