cmGlobalVisualStudio8Win64Generator.cxx 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 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 "windows.h" // this must be first to define GetCurrentDirectory
  11. #include "cmGlobalVisualStudio8Win64Generator.h"
  12. #include "cmLocalVisualStudio7Generator.h"
  13. #include "cmMakefile.h"
  14. #include "cmake.h"
  15. cmGlobalVisualStudio8Win64Generator::cmGlobalVisualStudio8Win64Generator()
  16. {
  17. this->PlatformName = "x64";
  18. }
  19. ///! Create a local generator appropriate to this Global Generator
  20. cmLocalGenerator *cmGlobalVisualStudio8Win64Generator::CreateLocalGenerator()
  21. {
  22. cmLocalVisualStudio7Generator *lg = new cmLocalVisualStudio7Generator;
  23. lg->SetVersion8();
  24. lg->SetPlatformName(this->PlatformName.c_str());
  25. lg->SetExtraFlagTable(this->GetExtraFlagTableVS8());
  26. lg->SetGlobalGenerator(this);
  27. return lg;
  28. }
  29. //----------------------------------------------------------------------------
  30. void cmGlobalVisualStudio8Win64Generator
  31. ::GetDocumentation(cmDocumentationEntry& entry) const
  32. {
  33. entry.Name = this->GetName();
  34. entry.Brief = "Generates Visual Studio .NET 2005 Win64 project files.";
  35. entry.Full = "";
  36. }
  37. void cmGlobalVisualStudio8Win64Generator
  38. ::EnableLanguage(std::vector<std::string>const & lang,
  39. cmMakefile *mf, bool optional)
  40. {
  41. mf->AddDefinition("CMAKE_FORCE_WIN64", "TRUE");
  42. cmGlobalVisualStudio8Generator::EnableLanguage(lang, mf, optional);
  43. }