summaryrefslogtreecommitdiffstats
path: root/cmake/QtProperties.cmake
diff options
context:
space:
mode:
authorJean-Michaël Celerier <jean-michael.celerier@kdab.com>2019-07-05 11:55:05 +0200
committerJean-Michaël Celerier <jean-michael.celerier@kdab.com>2019-07-05 14:58:52 +0000
commita5b78a3660d9b92d12c950eddb4cb3ccc43893b1 (patch)
tree019e58a9aadc37ea5dc4afcc40fa98a2a73dca9b /cmake/QtProperties.cmake
parent5769e1a2f6016cf807d20e09083b893f0c628d07 (diff)
cmake: implement default qpa plugin behavior for static builds
This is done by adding a DEFAULT_IF argument to add_qt_plugin, which accepts if-evaluated expressions. e.g. add_qt_plugin(myplugin DEFAULT_IF ${foo} STREQUAL ${bar} ... ) so that this mechanism can be reused later if necessary. Change-Id: I7eba9adaaa28e55a4f0f94cf206e868b990027e6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtProperties.cmake')
-rw-r--r--cmake/QtProperties.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/QtProperties.cmake b/cmake/QtProperties.cmake
index e8b1fbf4f0..0c3507b953 100644
--- a/cmake/QtProperties.cmake
+++ b/cmake/QtProperties.cmake
@@ -38,6 +38,18 @@ define_property(TARGET
For instance, Sql for qsqlite"
)
+define_property(TARGET
+ PROPERTY
+ QT_DEFAULT_PLUGIN
+ BRIEF_DOCS
+ "Indicates whether a plug-in is added by default."
+ FULL_DOCS
+ "This is a property on Qt plug-ins.
+ It is mainly used to indicate if a plug-in should be added
+ to the default set of plug-ins when building a static app -
+ for instance, which QPA should be linked."
+)
+
define_property(GLOBAL
PROPERTY
QT_KNOWN_PLUGINS