summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-06-06 17:58:18 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-06-06 17:58:18 (GMT)
commit37801ddaaec78597d5ac000bf60f6948ff865d06 (patch)
treea39ab5ff5c125d6e2c5dfb4235cf041518fbd266 /Source/cmMakefile.cxx
parent355278324e0e96048e27195249161c1c68a7c412 (diff)
downloadCMake-37801ddaaec78597d5ac000bf60f6948ff865d06.zip
CMake-37801ddaaec78597d5ac000bf60f6948ff865d06.tar.gz
CMake-37801ddaaec78597d5ac000bf60f6948ff865d06.tar.bz2
added enable testing deprecated some commands
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx86
1 files changed, 0 insertions, 86 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 86d881a..8d90229 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -383,89 +383,8 @@ void cmMakefile::GenerateMakefile()
}
// now do the generation
m_MakefileGenerator->GenerateMakefile();
-
- // generate any testing files
- this->GenerateTestfile();
}
-void cmMakefile::GenerateTestfile()
-{
- if (m_Tests.empty() && this->GetSubDirectories().empty())
- {
- return;
- }
-
- // Create a full path filename for output Testfile
- std::string fname;
- fname = this->GetCurrentOutputDirectory();
- fname += "/";
- fname += "CMakeTestfile.txt";
-
- // Open the output Testfile
- std::ofstream fout(fname.c_str());
- if (!fout)
- {
- cmSystemTools::Error("Error Writing ", fname.c_str());
- return;
- }
-
- fout << "# CMake generated Testfile for " << std::endl
- << "#\tSource directory: "
- << this->GetCurrentDirectory()
- << std::endl
- << "#\tBuild directory: " << this->GetCurrentOutputDirectory()
- << std::endl
- << "# " << std::endl
- << "# This file replicates the SUBDIRS() and ADD_TEST() commands from the source"
- << std::endl
- << "# tree CMakeLists.txt file, skipping any SUBDIRS() or ADD_TEST() commands"
- << std::endl
- << "# that are excluded by CMake control structures, i.e. IF() commands."
- << std::endl
- << "#"
- << std::endl << std::endl;
-
- // write out the subdirs for the current directory
- if (!this->GetSubDirectories().empty())
- {
- fout << "SUBDIRS(";
- const std::vector<std::string>& subdirs = this->GetSubDirectories();
- std::vector<std::string>::const_iterator i = subdirs.begin();
- fout << (*i).c_str();
- ++i;
- for(; i != subdirs.end(); ++i)
- {
- fout << " " << (*i).c_str();
- }
- fout << ")" << std::endl << std::endl;;
- }
-
-
- // write out each test
- std::vector<std::vector<std::string> >::iterator testIt;
- std::vector<std::string>::iterator it;
-
- // for each test
- for (testIt = m_Tests.begin(); testIt != m_Tests.end(); ++testIt)
- {
- if (!(*testIt).empty())
- {
- // for each arg in the test
- fout << "ADD_TEST(";
- it = (*testIt).begin();
- fout << (*it).c_str();
- ++it;
- for (; it != (*testIt).end(); ++it)
- {
- fout << " " << (*it).c_str();
- }
- fout << ")" << std::endl;
- }
- }
-
- fout << std::endl;
- fout.close();
-}
void cmMakefile::AddSource(cmSourceFile& cmfile, const char *srclist)
{
@@ -571,11 +490,6 @@ void cmMakefile::AddDefinition(const char* name, bool value)
}
}
-void cmMakefile::AddTest(const std::vector<std::string> &args)
-{
- m_Tests.push_back(args);
-}
-
void cmMakefile::SetProjectName(const char* p)
{
m_ProjectName = p;