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/CMakeLists.txt | |
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/CMakeLists.txt')
-rw-r--r-- | Source/QtDialog/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt index 68c65ac..80c0dc0 100644 --- a/Source/QtDialog/CMakeLists.txt +++ b/Source/QtDialog/CMakeLists.txt @@ -36,6 +36,12 @@ if (Qt5Widgets_FOUND) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") + if(CMake_QT_STATIC_QXcbIntegrationPlugin_LIBRARIES) + list(APPEND CMake_QT_LIBRARIES ${CMake_QT_STATIC_QXcbIntegrationPlugin_LIBRARIES}) + set_property(SOURCE CMakeSetup.cxx + PROPERTY COMPILE_DEFINITIONS USE_QXcbIntegrationPlugin) + endif() + # We need to install platform plugin and add qt.conf for Qt5 on Mac and Windows. # FIXME: This should be part of Qt5 CMake scripts, but unfortunatelly # Qt5 support is missing there. |