summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio9Win64Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-12-17 19:43:11 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-12-17 19:43:11 (GMT)
commit58f671bb1ca501726afbffa748d0ee72375bba05 (patch)
tree5030d8625c0027e598a77808cded2d551c6e1ec1 /Source/cmGlobalVisualStudio9Win64Generator.cxx
parent9eb207aa89256f30947feb031717050aa5a16aae (diff)
downloadCMake-58f671bb1ca501726afbffa748d0ee72375bba05.zip
CMake-58f671bb1ca501726afbffa748d0ee72375bba05.tar.gz
CMake-58f671bb1ca501726afbffa748d0ee72375bba05.tar.bz2
ENH: add support for vs 9 win64
Diffstat (limited to 'Source/cmGlobalVisualStudio9Win64Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio9Win64Generator.cxx53
1 files changed, 53 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio9Win64Generator.cxx b/Source/cmGlobalVisualStudio9Win64Generator.cxx
new file mode 100644
index 0000000..0140d5c
--- /dev/null
+++ b/Source/cmGlobalVisualStudio9Win64Generator.cxx
@@ -0,0 +1,53 @@
+/*=========================================================================
+
+Program: CMake - Cross-Platform Makefile Generator
+Module: $RCSfile$
+Language: C++
+Date: $Date$
+Version: $Revision$
+
+Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
+See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
+
+This software is distributed WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE. See the above copyright notices for more information.
+
+=========================================================================*/
+#include "cmGlobalVisualStudio9Win64Generator.h"
+#include "cmLocalVisualStudio7Generator.h"
+#include "cmMakefile.h"
+
+
+cmGlobalVisualStudio9Win64Generator::cmGlobalVisualStudio9Win64Generator()
+{
+ this->PlatformName = "x64";
+}
+
+///! Create a local generator appropriate to this Global Generator
+cmLocalGenerator *cmGlobalVisualStudio9Win64Generator::CreateLocalGenerator()
+{
+ cmLocalVisualStudio7Generator *lg = new cmLocalVisualStudio7Generator;
+ lg->SetVersion9();
+ lg->SetPlatformName(this->PlatformName.c_str());
+ lg->SetExtraFlagTable(this->GetExtraFlagTableVS8());
+ lg->SetGlobalGenerator(this);
+ return lg;
+}
+
+//----------------------------------------------------------------------------
+void cmGlobalVisualStudio9Win64Generator
+::GetDocumentation(cmDocumentationEntry& entry) const
+{
+ entry.Name = this->GetName();
+ entry.Brief = "Generates Visual Studio 9 2008 Win64 project files.";
+ entry.Full = "";
+}
+
+void cmGlobalVisualStudio9Win64Generator
+::EnableLanguage(std::vector<std::string>const & lang,
+ cmMakefile *mf, bool optional)
+{
+ mf->AddDefinition("CMAKE_FORCE_WIN64", "TRUE");
+ cmGlobalVisualStudio9Generator::EnableLanguage(lang, mf, optional);
+}