diff options
author | MÃ¥rten Nordheim <marten.nordheim@qt.io> | 2019-07-05 10:47:26 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-09-11 08:25:54 +0000 |
commit | 2cf0ba1fba9293b3265a186527dbc90d395dfd20 (patch) | |
tree | 4a25d77ccd7e201e01bfcbcf086370869c53cce4 /src/platformsupport/input | |
parent | 7df0868ad59dd071f2ce2dd355488128fa56f645 (diff) |
Use pre-compiled headers when building Qt with cmake
Some modules define their own manually-maintained lists, and we can rely
on the headers generated by each module to include in the pch as well
e.g. QtCore/QtCore.
There's also e.g. QtWidgetDepends for QtWidgets, but this only
works for modules, not for tools, examples or other applications.
For now we'll use the Qt<Module>/Qt<Module> headers for the
modules we depend on.
Building with PCH can be disabled with -DBUILD_WITH_PCH=NO, and it only
works for versions of CMake newer than 3.15.20190829.
Change-Id: Iae52bd69acfdfd58f4cd20d3cfa3c7f42775f732
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/platformsupport/input')
-rw-r--r-- | src/platformsupport/input/CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/platformsupport/input/xkbcommon/CMakeLists.txt | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/platformsupport/input/CMakeLists.txt b/src/platformsupport/input/CMakeLists.txt index 859d2d33ad..681d103a82 100644 --- a/src/platformsupport/input/CMakeLists.txt +++ b/src/platformsupport/input/CMakeLists.txt @@ -22,12 +22,13 @@ add_qt_module(InputSupport Qt::Core Qt::DeviceDiscoverySupport Qt::Gui + PRECOMPILED_HEADER + "../../corelib/global/qt_pch.h" ) #### Keys ignored in scope 3:.:.:input-support.pro:<TRUE>: # CONFIG = "static" "internal_module" # MODULE = "input_support" -# PRECOMPILED_HEADER = "../../corelib/global/qt_pch.h" # _LOADED = "qt_module" ## Scopes: diff --git a/src/platformsupport/input/xkbcommon/CMakeLists.txt b/src/platformsupport/input/xkbcommon/CMakeLists.txt index 1a96d5eafe..50c86bb5b8 100644 --- a/src/platformsupport/input/xkbcommon/CMakeLists.txt +++ b/src/platformsupport/input/xkbcommon/CMakeLists.txt @@ -19,12 +19,13 @@ add_qt_module(XkbCommonSupport Qt::Core Qt::Gui XKB::XKB + PRECOMPILED_HEADER + "../../../corelib/global/qt_pch.h" ) #### Keys ignored in scope 1:.:.:xkbcommon.pro:<TRUE>: # CONFIG = "static" "internal_module" # MODULE = "xkbcommon_support" -# PRECOMPILED_HEADER = "../../../corelib/global/qt_pch.h" # _LOADED = "qt_module" ## Scopes: |