cmGlobalVisualStudio14Generator.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2014 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmGlobalVisualStudio14Generator_h
  11. #define cmGlobalVisualStudio14Generator_h
  12. #include "cmGlobalVisualStudio12Generator.h"
  13. /** \class cmGlobalVisualStudio14Generator */
  14. class cmGlobalVisualStudio14Generator:
  15. public cmGlobalVisualStudio12Generator
  16. {
  17. public:
  18. cmGlobalVisualStudio14Generator(cmake* cm, const std::string& name,
  19. const std::string& platformName);
  20. static cmGlobalGeneratorFactory* NewFactory();
  21. virtual bool MatchesGeneratorName(const std::string& name) const;
  22. virtual void WriteSLNHeader(std::ostream& fout);
  23. virtual const char* GetToolsVersion() { return "14.0"; }
  24. protected:
  25. virtual bool InitializeWindows(cmMakefile* mf);
  26. virtual bool InitializeWindowsStore(cmMakefile* mf);
  27. virtual bool SelectWindowsStoreToolset(std::string& toolset) const;
  28. // These aren't virtual because we need to check if the selected version
  29. // of the toolset is installed
  30. bool IsWindowsStoreToolsetInstalled() const;
  31. virtual const char* GetIDEVersion() { return "14.0"; }
  32. virtual bool SelectWindows10SDK(cmMakefile* mf);
  33. // Used to verify that the Desktop toolset for the current generator is
  34. // installed on the machine.
  35. virtual bool IsWindowsDesktopToolsetInstalled() const;
  36. std::string GetWindows10SDKVersion();
  37. private:
  38. class Factory;
  39. };
  40. #endif