You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.9 KiB

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