summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenInitializer.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2018-08-13 10:06:19 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2018-08-13 16:12:47 (GMT)
commit3aa11f31fcb9780d6e54647a97ca876a2a409251 (patch)
tree028811cfd2b61b280538392a6dc93771f127962c /Source/cmQtAutoGenInitializer.h
parent1d87c9f318b45ba9984378580d5b4926acfd4c11 (diff)
downloadCMake-3aa11f31fcb9780d6e54647a97ca876a2a409251.zip
CMake-3aa11f31fcb9780d6e54647a97ca876a2a409251.tar.gz
CMake-3aa11f31fcb9780d6e54647a97ca876a2a409251.tar.bz2
Autogen: Use integers to store the Qt version
Diffstat (limited to 'Source/cmQtAutoGenInitializer.h')
-rw-r--r--Source/cmQtAutoGenInitializer.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/Source/cmQtAutoGenInitializer.h b/Source/cmQtAutoGenInitializer.h
index 295d41f..ce00e00 100644
--- a/Source/cmQtAutoGenInitializer.h
+++ b/Source/cmQtAutoGenInitializer.h
@@ -18,10 +18,6 @@ class cmTarget;
class cmQtAutoGenInitializer : public cmQtAutoGen
{
public:
- static std::string GetQtMajorVersion(cmGeneratorTarget const* target);
- static std::string GetQtMinorVersion(cmGeneratorTarget const* target,
- std::string const& qtVersionMajor);
-
/// @brief Rcc job information
class Qrc
{
@@ -48,9 +44,11 @@ public:
};
public:
+ static IntegerVersion GetQtVersion(cmGeneratorTarget const* target);
+
cmQtAutoGenInitializer(cmGeneratorTarget* target, bool mocEnabled,
bool uicEnabled, bool rccEnabled,
- std::string const& qtVersionMajor);
+ IntegerVersion const& qtVersion);
bool InitCustomTargets();
bool SetupCustomTargets();
@@ -69,9 +67,6 @@ private:
void AddGeneratedSource(std::string const& filename, GeneratorT genType);
- bool QtVersionGreaterOrEqual(unsigned long requestMajor,
- unsigned long requestMinor) const;
-
bool GetMocExecutable();
bool GetUicExecutable();
bool GetRccExecutable();
@@ -83,11 +78,8 @@ private:
private:
cmGeneratorTarget* Target;
- // Qt
- std::string QtVersionMajor;
- std::string QtVersionMinor;
-
// Configuration
+ IntegerVersion QtVersion;
bool MultiConfig = false;
std::string ConfigDefault;
std::vector<std::string> ConfigsList;