1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmGlobalVisualStudio8Win64Generator.cxx,v $
6 Date: $Date: 2007-10-22 16:48:39 $
7 Version: $Revision: 1.5 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #include "windows.h" // this must be first to define GetCurrentDirectory
18 #include "cmGlobalVisualStudio8Win64Generator.h"
19 #include "cmLocalVisualStudio7Generator.h"
20 #include "cmMakefile.h"
25 cmGlobalVisualStudio8Win64Generator::cmGlobalVisualStudio8Win64Generator()
27 this->PlatformName
= "x64";
30 ///! Create a local generator appropriate to this Global Generator
31 cmLocalGenerator
*cmGlobalVisualStudio8Win64Generator::CreateLocalGenerator()
33 cmLocalVisualStudio7Generator
*lg
= new cmLocalVisualStudio7Generator
;
35 lg
->SetPlatformName(this->PlatformName
.c_str());
36 lg
->SetExtraFlagTable(this->GetExtraFlagTableVS8());
37 lg
->SetGlobalGenerator(this);
41 //----------------------------------------------------------------------------
42 void cmGlobalVisualStudio8Win64Generator
43 ::GetDocumentation(cmDocumentationEntry
& entry
) const
45 entry
.Name
= this->GetName();
46 entry
.Brief
= "Generates Visual Studio .NET 2005 Win64 project files.";
50 void cmGlobalVisualStudio8Win64Generator
51 ::EnableLanguage(std::vector
<std::string
>const & lang
,
52 cmMakefile
*mf
, bool optional
)
54 mf
->AddDefinition("CMAKE_FORCE_WIN64", "TRUE");
55 cmGlobalVisualStudio8Generator::EnableLanguage(lang
, mf
, optional
);