cmGlobalVisualStudio14Generator.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 cmGlobalVisualStudio14Generator_h
  4. #define cmGlobalVisualStudio14Generator_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <iosfwd>
  7. #include <string>
  8. #include "cmGlobalVisualStudio12Generator.h"
  9. class cmGlobalGeneratorFactory;
  10. class cmMakefile;
  11. class cmake;
  12. /** \class cmGlobalVisualStudio14Generator */
  13. class cmGlobalVisualStudio14Generator : public cmGlobalVisualStudio12Generator
  14. {
  15. public:
  16. cmGlobalVisualStudio14Generator(cmake* cm, const std::string& name,
  17. const std::string& platformName);
  18. static cmGlobalGeneratorFactory* NewFactory();
  19. bool MatchesGeneratorName(const std::string& name) const override;
  20. void WriteSLNHeader(std::ostream& fout) override;
  21. const char* GetToolsVersion() override { return "14.0"; }
  22. protected:
  23. bool InitializeWindows(cmMakefile* mf) override;
  24. bool InitializeWindowsStore(cmMakefile* mf) override;
  25. bool SelectWindowsStoreToolset(std::string& toolset) const override;
  26. // These aren't virtual because we need to check if the selected version
  27. // of the toolset is installed
  28. bool IsWindowsStoreToolsetInstalled() const;
  29. const char* GetIDEVersion() override { return "14.0"; }
  30. virtual bool SelectWindows10SDK(cmMakefile* mf, bool required);
  31. // Used to verify that the Desktop toolset for the current generator is
  32. // installed on the machine.
  33. bool IsWindowsDesktopToolsetInstalled() const override;
  34. std::string GetWindows10SDKVersion();
  35. private:
  36. class Factory;
  37. };
  38. #endif