cmGlobalVisualStudio9Win64Generator.cxx 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 "cmGlobalVisualStudio9Win64Generator.h"
  14. #include "cmLocalVisualStudio7Generator.h"
  15. #include "cmMakefile.h"
  16. cmGlobalVisualStudio9Win64Generator::cmGlobalVisualStudio9Win64Generator()
  17. {
  18. this->PlatformName = "x64";
  19. }
  20. ///! Create a local generator appropriate to this Global Generator
  21. cmLocalGenerator *cmGlobalVisualStudio9Win64Generator::CreateLocalGenerator()
  22. {
  23. cmLocalVisualStudio7Generator *lg = new cmLocalVisualStudio7Generator;
  24. lg->SetVersion9();
  25. lg->SetPlatformName(this->PlatformName.c_str());
  26. lg->SetExtraFlagTable(this->GetExtraFlagTableVS8());
  27. lg->SetGlobalGenerator(this);
  28. return lg;
  29. }
  30. //----------------------------------------------------------------------------
  31. void cmGlobalVisualStudio9Win64Generator
  32. ::GetDocumentation(cmDocumentationEntry& entry) const
  33. {
  34. entry.Name = this->GetName();
  35. entry.Brief = "Generates Visual Studio 9 2008 Win64 project files.";
  36. entry.Full = "";
  37. }
  38. void cmGlobalVisualStudio9Win64Generator
  39. ::EnableLanguage(std::vector<std::string>const & lang,
  40. cmMakefile *mf, bool optional)
  41. {
  42. mf->AddDefinition("CMAKE_FORCE_WIN64", "TRUE");
  43. cmGlobalVisualStudio9Generator::EnableLanguage(lang, mf, optional);
  44. }