diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-04-01 19:57:55 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-04-01 19:57:55 (GMT) |
commit | 7acfc4dc3cd8c5865ff55ed94e210776cff6876b (patch) | |
tree | f68de1f9e3885b48f37857dfaf3b5120ca93072d /Source/cmAddTestCommand.cxx | |
parent | eca18a2e9fcd9a33dce6d87bcca86de236598ae1 (diff) | |
download | CMake-7acfc4dc3cd8c5865ff55ed94e210776cff6876b.zip CMake-7acfc4dc3cd8c5865ff55ed94e210776cff6876b.tar.gz CMake-7acfc4dc3cd8c5865ff55ed94e210776cff6876b.tar.bz2 |
ENH: Start adding support for CTest testfiles
Diffstat (limited to 'Source/cmAddTestCommand.cxx')
-rw-r--r-- | Source/cmAddTestCommand.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmAddTestCommand.cxx b/Source/cmAddTestCommand.cxx index 28ee2d7..66203e2 100644 --- a/Source/cmAddTestCommand.cxx +++ b/Source/cmAddTestCommand.cxx @@ -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 |