cmGlobalVisualStudio15Generator.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmGlobalVisualStudio15Generator_h
  4. #define cmGlobalVisualStudio15Generator_h
  5. #include "cmGlobalVisualStudio14Generator.h"
  6. /** \class cmGlobalVisualStudio15Generator */
  7. class cmGlobalVisualStudio15Generator : public cmGlobalVisualStudio14Generator
  8. {
  9. public:
  10. cmGlobalVisualStudio15Generator(cmake* cm, const std::string& name,
  11. const std::string& platformName);
  12. static cmGlobalGeneratorFactory* NewFactory();
  13. virtual bool MatchesGeneratorName(const std::string& name) const;
  14. virtual void WriteSLNHeader(std::ostream& fout);
  15. virtual const char* GetToolsVersion() { return "15.0"; }
  16. protected:
  17. virtual bool SelectWindowsStoreToolset(std::string& toolset) const;
  18. virtual const char* GetIDEVersion() { return "15.0"; }
  19. // Used to verify that the Desktop toolset for the current generator is
  20. // installed on the machine.
  21. virtual bool IsWindowsDesktopToolsetInstalled() const;
  22. // These aren't virtual because we need to check if the selected version
  23. // of the toolset is installed
  24. bool IsWindowsStoreToolsetInstalled() const;
  25. private:
  26. class Factory;
  27. };
  28. #endif