diff options
author | Brad King <brad.king@kitware.com> | 2016-06-30 14:43:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-06-30 15:26:53 (GMT) |
commit | 73a3c0cd9857b519350df09811f78c29e3fbd7be (patch) | |
tree | 0c50f92ad36732d4e109153315b0aa4b6ea11c6e /Source/QtDialog/CMakeSetup.cxx | |
parent | b1883bc8b7bd4211037bcc181edffdcce646f43a (diff) | |
download | CMake-73a3c0cd9857b519350df09811f78c29e3fbd7be.zip CMake-73a3c0cd9857b519350df09811f78c29e3fbd7be.tar.gz CMake-73a3c0cd9857b519350df09811f78c29e3fbd7be.tar.bz2 |
cmake-gui: Add build option to use Qt5 xcb plugin statically
This will enable builds against a static Qt5.
Diffstat (limited to 'Source/QtDialog/CMakeSetup.cxx')
-rw-r--r-- | Source/QtDialog/CMakeSetup.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx index c849d52..ff3a7b2 100644 --- a/Source/QtDialog/CMakeSetup.cxx +++ b/Source/QtDialog/CMakeSetup.cxx @@ -20,6 +20,7 @@ #include <QDir> #include <QLocale> #include <QString> +#include <QtPlugin> #include <QTextCodec> #include <QTranslator> #include <cmsys/CommandLineArguments.hxx> @@ -44,6 +45,10 @@ static int cmOSXInstall(std::string dir); static void cmAddPluginPath(); #endif +#if defined(USE_QXcbIntegrationPlugin) +Q_IMPORT_PLUGIN(QXcbIntegrationPlugin); +#endif + int main(int argc, char** argv) { cmsys::Encoding::CommandLineArguments encoding_args = |