cmGlobalVisualStudio8Generator.cxx 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #include "windows.h" // this must be first to define GetCurrentDirectory
  14. #include "cmGlobalVisualStudio8Generator.h"
  15. #include "cmLocalVisualStudio7Generator.h"
  16. #include "cmMakefile.h"
  17. #include "cmake.h"
  18. cmGlobalVisualStudio8Generator::cmGlobalVisualStudio8Generator()
  19. {
  20. m_FindMakeProgramFile = "CMakeVS8FindMake.cmake";
  21. }
  22. ///! Create a local generator appropriate to this Global Generator
  23. cmLocalGenerator *cmGlobalVisualStudio8Generator::CreateLocalGenerator()
  24. {
  25. cmLocalVisualStudio7Generator *lg = new cmLocalVisualStudio7Generator;
  26. lg->SetVersion8();
  27. lg->SetGlobalGenerator(this);
  28. return lg;
  29. }
  30. // ouput standard header for dsw file
  31. void cmGlobalVisualStudio8Generator::WriteSLNHeader(std::ostream& fout)
  32. {
  33. fout << "Microsoft Visual Studio Solution File, Format Version 9.00\n";
  34. }
  35. //----------------------------------------------------------------------------
  36. void cmGlobalVisualStudio8Generator::GetDocumentation(cmDocumentationEntry& entry) const
  37. {
  38. entry.name = this->GetName();
  39. entry.brief = "Generates Visual Studio .NET 2005 project files.";
  40. entry.full = "";
  41. }