|
@@ -32,6 +32,7 @@
|
|
|
# include "cmVariableWatch.h"
|
|
# include "cmVariableWatch.h"
|
|
|
#endif
|
|
#endif
|
|
|
#include "cmInstallGenerator.h"
|
|
#include "cmInstallGenerator.h"
|
|
|
|
|
+#include "cmTestGenerator.h"
|
|
|
#include "cmake.h"
|
|
#include "cmake.h"
|
|
|
#include <stdlib.h> // required for atoi
|
|
#include <stdlib.h> // required for atoi
|
|
|
|
|
|
|
@@ -108,7 +109,6 @@ cmMakefile::cmMakefile(const cmMakefile& mf)
|
|
|
this->Targets = mf.Targets;
|
|
this->Targets = mf.Targets;
|
|
|
this->SourceFiles = mf.SourceFiles;
|
|
this->SourceFiles = mf.SourceFiles;
|
|
|
this->Tests = mf.Tests;
|
|
this->Tests = mf.Tests;
|
|
|
- this->OrderedTests = mf.OrderedTests;
|
|
|
|
|
this->IncludeDirectories = mf.IncludeDirectories;
|
|
this->IncludeDirectories = mf.IncludeDirectories;
|
|
|
this->LinkDirectories = mf.LinkDirectories;
|
|
this->LinkDirectories = mf.LinkDirectories;
|
|
|
this->SystemIncludeDirectories = mf.SystemIncludeDirectories;
|
|
this->SystemIncludeDirectories = mf.SystemIncludeDirectories;
|
|
@@ -116,6 +116,7 @@ cmMakefile::cmMakefile(const cmMakefile& mf)
|
|
|
this->OutputFiles = mf.OutputFiles;
|
|
this->OutputFiles = mf.OutputFiles;
|
|
|
this->LinkLibraries = mf.LinkLibraries;
|
|
this->LinkLibraries = mf.LinkLibraries;
|
|
|
this->InstallGenerators = mf.InstallGenerators;
|
|
this->InstallGenerators = mf.InstallGenerators;
|
|
|
|
|
+ this->TestGenerators = mf.TestGenerators;
|
|
|
this->IncludeFileRegularExpression = mf.IncludeFileRegularExpression;
|
|
this->IncludeFileRegularExpression = mf.IncludeFileRegularExpression;
|
|
|
this->ComplainFileRegularExpression = mf.ComplainFileRegularExpression;
|
|
this->ComplainFileRegularExpression = mf.ComplainFileRegularExpression;
|
|
|
this->SourceFileExtensions = mf.SourceFileExtensions;
|
|
this->SourceFileExtensions = mf.SourceFileExtensions;
|
|
@@ -181,6 +182,12 @@ cmMakefile::~cmMakefile()
|
|
|
{
|
|
{
|
|
|
delete *i;
|
|
delete *i;
|
|
|
}
|
|
}
|
|
|
|
|
+ for(std::vector<cmTestGenerator*>::iterator
|
|
|
|
|
+ i = this->TestGenerators.begin();
|
|
|
|
|
+ i != this->TestGenerators.end(); ++i)
|
|
|
|
|
+ {
|
|
|
|
|
+ delete *i;
|
|
|
|
|
+ }
|
|
|
for(std::vector<cmSourceFile*>::iterator i = this->SourceFiles.begin();
|
|
for(std::vector<cmSourceFile*>::iterator i = this->SourceFiles.begin();
|
|
|
i != this->SourceFiles.end(); ++i)
|
|
i != this->SourceFiles.end(); ++i)
|
|
|
{
|
|
{
|
|
@@ -3324,7 +3331,6 @@ cmTest* cmMakefile::CreateTest(const char* testName)
|
|
|
test->SetName(testName);
|
|
test->SetName(testName);
|
|
|
test->SetMakefile(this);
|
|
test->SetMakefile(this);
|
|
|
this->Tests[testName] = test;
|
|
this->Tests[testName] = test;
|
|
|
- this->OrderedTests.push_back(test);
|
|
|
|
|
return test;
|
|
return test;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -3343,12 +3349,6 @@ cmTest* cmMakefile::GetTest(const char* testName) const
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-//----------------------------------------------------------------------------
|
|
|
|
|
-const std::vector<cmTest*> *cmMakefile::GetTests() const
|
|
|
|
|
-{
|
|
|
|
|
- return &this->OrderedTests;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
std::string cmMakefile::GetListFileStack()
|
|
std::string cmMakefile::GetListFileStack()
|
|
|
{
|
|
{
|
|
|
cmOStringStream tmp;
|
|
cmOStringStream tmp;
|