diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-26 20:14:40 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-26 20:14:40 (GMT) |
commit | 800db3a063b766ccab03afa7bae397700f8f2fe6 (patch) | |
tree | 1c4f0125ae190a46b12edcf7b8f5ef889548ebd4 /Source/cmMSDotNETGenerator.cxx | |
parent | ffb875f862219c66b6da21f6fb0d43f84e639d76 (diff) | |
download | CMake-800db3a063b766ccab03afa7bae397700f8f2fe6.zip CMake-800db3a063b766ccab03afa7bae397700f8f2fe6.tar.gz CMake-800db3a063b766ccab03afa7bae397700f8f2fe6.tar.bz2 |
ENH: add RUN_TESTS
Diffstat (limited to 'Source/cmMSDotNETGenerator.cxx')
-rw-r--r-- | Source/cmMSDotNETGenerator.cxx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Source/cmMSDotNETGenerator.cxx b/Source/cmMSDotNETGenerator.cxx index 6dc5d14..610c40e 100644 --- a/Source/cmMSDotNETGenerator.cxx +++ b/Source/cmMSDotNETGenerator.cxx @@ -121,6 +121,30 @@ void cmMSDotNETGenerator::WriteSLNFile(std::ostream& fout) // add a special target that depends on ALL projects for easy build // of Debug only m_Makefile->AddUtilityCommand("ALL_BUILD", "echo", "\"Build all projects\"", + false); + + std::string ctest = m_Makefile->GetDefinition("CMAKE_COMMAND"); + ctest = cmSystemTools::GetFilenamePath(ctest.c_str()); + ctest += "/"; + ctest += "ctest"; + ctest += cmSystemTools::GetExecutableExtension(); + if(!cmSystemTools::FileExists(ctest.c_str())) + { + ctest = m_Makefile->GetDefinition("CMAKE_COMMAND"); + ctest = cmSystemTools::GetFilenamePath(ctest.c_str()); + ctest += "/Debug/"; + ctest += "ctest"; + ctest += cmSystemTools::GetExecutableExtension(); + } + if(!cmSystemTools::FileExists(ctest.c_str())) + { + ctest = m_Makefile->GetDefinition("CMAKE_COMMAND"); + ctest = cmSystemTools::GetFilenamePath(ctest.c_str()); + ctest += "/Release/"; + ctest += "ctest"; + ctest += cmSystemTools::GetExecutableExtension(); + } + m_Makefile->AddUtilityCommand("RUN_TESTS", ctest.c_str(), "-D $(IntDir)", false); m_Makefile->FindSubDirectoryCMakeListsFiles(allListFiles); // For each cmMakefile, create a VCProj for it, and @@ -732,6 +756,7 @@ void cmMSDotNETGenerator::WriteConfiguration(std::ostream& fout, } this->OutputDefineFlags(fout); fout << "\"\n"; + fout << "\t\t\t\tRuntimeTypeInfo=\"TRUE\"\n"; fout << "\t\t\t\tAssemblerListingLocation=\"" << configName << "\"\n"; fout << "\t\t\t\tObjectFile=\"" << configName << "\\\"\n"; fout << "\t\t\t\tProgramDataBaseFileName=\"" << configName << "\"\n"; |