ENH: Start adding support for CTest testfiles

This commit is contained in:
Andy Cedilnik
2005-04-01 14:57:55 -05:00
parent eca18a2e9f
commit 7acfc4dc3c
6 changed files with 53 additions and 8 deletions

View File

@@ -44,7 +44,14 @@ void cmAddTestCommand::FinalPass()
std::string fname;
fname = m_Makefile->GetStartOutputDirectory();
fname += "/";
fname += "DartTestfile.txt";
if ( m_Makefile->IsOn("DART_ROOT") )
{
fname += "DartTestfile.txt";
}
else
{
fname += "CTestTestfile.cmake";
}
// If the file doesn't exist, then ENABLE_TESTING hasn't been run