1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
5 #include "cmConfigure.h" // IWYU pragma: keep
9 #include "cmExternalMakefileProjectGenerator.h"
11 class cmGeneratedFileStream;
12 class cmLocalGenerator;
14 /** \class cmExtraKateGenerator
15 * \brief Write Kate project files for Makefile or ninja based projects
17 class cmExtraKateGenerator : public cmExternalMakefileProjectGenerator
20 cmExtraKateGenerator();
22 static cmExternalMakefileProjectGeneratorFactory* GetFactory();
24 void Generate() override;
27 void CreateKateProjectFile(const cmLocalGenerator& lg) const;
28 void CreateDummyKateProjectFile(const cmLocalGenerator& lg) const;
29 void WriteTargets(const cmLocalGenerator& lg,
30 cmGeneratedFileStream& fout) const;
31 void AppendTarget(cmGeneratedFileStream& fout, const std::string& target,
32 const std::string& make, const std::string& makeArgs,
33 const std::string& path,
34 const std::string& homeOutputDir) const;
36 std::string GenerateFilesString(const cmLocalGenerator& lg) const;
37 std::string GetPathBasename(const std::string& path) const;
38 std::string GenerateProjectName(const std::string& name,
39 const std::string& type,
40 const std::string& path) const;
42 std::string ProjectName;