From 453b20ea947f8cd6d42f3a0ccef38de1593bbb2f Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Thu, 16 Jan 2025 10:39:26 +0100 Subject: [PATCH] Add the meta target that allows building all plugins at once Add the qt__plugins_all target that allows building all plugins of the from build tree at once. Change-Id: Ie5057b9c51dcdfba36e3572064533d698d7549e9 Reviewed-by: Alexandru Croitor --- cmake/QtPluginHelpers.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/QtPluginHelpers.cmake b/cmake/QtPluginHelpers.cmake index cfb10415438..b1803246823 100644 --- a/cmake/QtPluginHelpers.cmake +++ b/cmake/QtPluginHelpers.cmake @@ -115,6 +115,12 @@ function(qt_internal_add_plugin target) qt_get_sanitized_plugin_type("${plugin_type}" plugin_type_escaped) + if(NOT TARGET qt_${plugin_type_escaped}_plugins_all) + add_custom_target(qt_${plugin_type_escaped}_plugins_all) + endif() + add_dependencies(qt_${plugin_type_escaped}_plugins_all ${target}) + + set(output_directory_default "${QT_BUILD_DIR}/${INSTALL_PLUGINSDIR}/${plugin_type}") set(install_directory_default "${INSTALL_PLUGINSDIR}/${plugin_type}")