Imported Upstream version 2.8.9
[platform/upstream/cmake.git] / Source / cmGlobalVisualStudio11Generator.h
1 /*============================================================================
2   CMake - Cross Platform Makefile Generator
3   Copyright 2000-2011 Kitware, Inc., Insight Software Consortium
4
5   Distributed under the OSI-approved BSD License (the "License");
6   see accompanying file Copyright.txt for details.
7
8   This software is distributed WITHOUT ANY WARRANTY; without even the
9   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10   See the License for more information.
11 ============================================================================*/
12 #ifndef cmGlobalVisualStudio11Generator_h
13 #define cmGlobalVisualStudio11Generator_h
14
15 #include "cmGlobalVisualStudio10Generator.h"
16
17
18 /** \class cmGlobalVisualStudio11Generator  */
19 class cmGlobalVisualStudio11Generator:
20   public cmGlobalVisualStudio10Generator
21 {
22 public:
23   cmGlobalVisualStudio11Generator();
24   static cmGlobalGenerator* New() {
25     return new cmGlobalVisualStudio11Generator; }
26
27   ///! Get the name for the generator.
28   virtual const char* GetName() const {
29     return cmGlobalVisualStudio11Generator::GetActualName();}
30   static const char* GetActualName() {return "Visual Studio 11";}
31   virtual void AddPlatformDefinitions(cmMakefile* mf);
32
33   virtual void WriteSLNHeader(std::ostream& fout);
34
35   /** Get the documentation entry for this generator.  */
36   virtual void GetDocumentation(cmDocumentationEntry& entry) const;
37
38   ///! create the correct local generator
39   virtual cmLocalGenerator *CreateLocalGenerator();
40
41   /** TODO: VS 11 user macro support. */
42   virtual std::string GetUserMacrosDirectory() { return ""; }
43 protected:
44   virtual const char* GetIDEVersion() { return "11.0"; }
45 };
46 #endif