cmGlobalVisualStudio11Generator.cxx 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2011 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "cmGlobalVisualStudio11Generator.h"
  11. #include "cmMakefile.h"
  12. //----------------------------------------------------------------------------
  13. cmGlobalVisualStudio11Generator::cmGlobalVisualStudio11Generator()
  14. {
  15. this->FindMakeProgramFile = "CMakeVS11FindMake.cmake";
  16. this->ExpressEdition = false; // TODO: VS 11 Express support
  17. this->PlatformToolset = "v110";
  18. }
  19. //----------------------------------------------------------------------------
  20. void cmGlobalVisualStudio11Generator::AddPlatformDefinitions(cmMakefile* mf)
  21. {
  22. mf->AddDefinition("MSVC11", "1");
  23. mf->AddDefinition("MSVC_C_ARCHITECTURE_ID", "X86");
  24. mf->AddDefinition("MSVC_CXX_ARCHITECTURE_ID", "X86");
  25. }
  26. //----------------------------------------------------------------------------
  27. void cmGlobalVisualStudio11Generator::WriteSLNHeader(std::ostream& fout)
  28. {
  29. fout << "Microsoft Visual Studio Solution File, Format Version 12.00\n";
  30. fout << "# Visual Studio 2011\n";
  31. }
  32. //----------------------------------------------------------------------------
  33. void cmGlobalVisualStudio11Generator
  34. ::GetDocumentation(cmDocumentationEntry& entry) const
  35. {
  36. entry.Name = this->GetName();
  37. entry.Brief = "Generates Visual Studio 11 project files.";
  38. entry.Full = "";
  39. }