summaryrefslogtreecommitdiff
path: root/Source/QtDialog/FirstConfigure.h
diff options
context:
space:
mode:
authorJulien Jomier <julien.jomier@kitware.com>2019-01-04 12:41:01 +0100
committerBrad King <brad.king@kitware.com>2019-01-18 12:41:35 -0500
commit48ec0bc1401b99e5a2d07392fb98f96d5fec9e50 (patch)
tree81d9548d57db659099cade2ab918becb06b9c84d /Source/QtDialog/FirstConfigure.h
parent8bba458ea5d6b792e165560d79efd8d8356f4329 (diff)
downloadcmake-48ec0bc1401b99e5a2d07392fb98f96d5fec9e50.tar.gz
cmake-gui: Add field for generator platform selection
Extend the "first configure" dialog with a field for the user to select a value for `CMAKE_GENERATOR_PLATFORM`. Fixes: #17343
Diffstat (limited to 'Source/QtDialog/FirstConfigure.h')
-rw-r--r--Source/QtDialog/FirstConfigure.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/QtDialog/FirstConfigure.h b/Source/QtDialog/FirstConfigure.h
index abfa03fd82..133f4224b8 100644
--- a/Source/QtDialog/FirstConfigure.h
+++ b/Source/QtDialog/FirstConfigure.h
@@ -35,6 +35,7 @@ public:
void setCurrentGenerator(const QString& gen);
QString getGenerator() const;
QString getToolset() const;
+ QString getPlatform() const;
bool defaultSetup() const;
bool compilerSetup() const;
@@ -56,10 +57,16 @@ protected:
QFrame* ToolsetFrame;
QLineEdit* Toolset;
QLabel* ToolsetLabel;
+ QFrame* PlatformFrame;
+ QComboBox* PlatformOptions;
+ QLabel* PlatformLabel;
QStringList GeneratorsSupportingToolset;
+ QStringList GeneratorsSupportingPlatform;
+ QMultiMap<QString, QString> GeneratorSupportedPlatforms;
private:
QFrame* CreateToolsetWidgets();
+ QFrame* CreatePlatformWidgets();
};
//! the page that gives basic options for native compilers
@@ -159,6 +166,7 @@ public:
void setGenerators(std::vector<cmake::GeneratorInfo> const& gens);
QString getGenerator() const;
+ QString getPlatform() const;
QString getToolset() const;
bool defaultSetup() const;