summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGen.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-02-14 13:44:18 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-02-21 10:37:51 (GMT)
commit14ae19c327100c137ec8cb549dfc7447c4888940 (patch)
tree7b59fe67fdab0e6dd034b5f14abddb35dfb96271 /Source/cmQtAutoGen.h
parenteb08e68b77954a4b439ee66b4987789b213d878a (diff)
downloadCMake-14ae19c327100c137ec8cb549dfc7447c4888940.zip
CMake-14ae19c327100c137ec8cb549dfc7447c4888940.tar.gz
CMake-14ae19c327100c137ec8cb549dfc7447c4888940.tar.bz2
Autogen: cmQtAutoGen: Store generator names in class static const strings
Diffstat (limited to 'Source/cmQtAutoGen.h')
-rw-r--r--Source/cmQtAutoGen.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/Source/cmQtAutoGen.h b/Source/cmQtAutoGen.h
index 96d1946..03dbded 100644
--- a/Source/cmQtAutoGen.h
+++ b/Source/cmQtAutoGen.h
@@ -14,15 +14,13 @@
class cmQtAutoGen
{
public:
- /// @brief Nested lists separator
- static std::string const ListSep;
/// @brief Maximum number of parallel threads/processes in a generator
static unsigned int const ParallelMax;
/// @brief AutoGen generator type
enum class GeneratorT
{
- GEN, // General
+ GEN, // AUTOGEN
MOC,
UIC,
RCC
@@ -54,11 +52,23 @@ public:
}
};
+ /// @brief Nested lists separator
+ static std::string const ListSep;
+ // Generator names
+ static std::string const GenNameGen;
+ static std::string const GenNameMoc;
+ static std::string const GenNameUic;
+ static std::string const GenNameRcc;
+ static std::string const GenNameGenUpper;
+ static std::string const GenNameMocUpper;
+ static std::string const GenNameUicUpper;
+ static std::string const GenNameRccUpper;
+
public:
/// @brief Returns the generator name
static std::string const& GeneratorName(GeneratorT genType);
/// @brief Returns the generator name in upper case
- static std::string GeneratorNameUpper(GeneratorT genType);
+ static std::string const& GeneratorNameUpper(GeneratorT genType);
/// @brief Returns a string with the requested tool names
static std::string Tools(bool moc, bool uic, bool rcc);