From cd87029e6fc0c8d8b25c9162812ae066066ad11a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 31 Aug 2021 18:55:56 +0200 Subject: [PATCH] NOISSUE add style plugins to packaging if present --- launcher/CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt index 7a5e4173..7241b89d 100644 --- a/launcher/CMakeLists.txt +++ b/launcher/CMakeLists.txt @@ -985,6 +985,14 @@ if(INSTALL_BUNDLE STREQUAL "full") COMPONENT Runtime REGEX "minimal|linuxfb|offscreen" EXCLUDE ) + # Style plugins + if(EXISTS "${QT_PLUGINS_DIR}/styles") + install( + DIRECTORY "${QT_PLUGINS_DIR}/styles" + DESTINATION ${PLUGIN_DEST_DIR} + COMPONENT Runtime + ) + endif() else() # Image formats install( @@ -1016,6 +1024,17 @@ if(INSTALL_BUNDLE STREQUAL "full") REGEX "_debug\\." EXCLUDE REGEX "\\.dSYM" EXCLUDE ) + # Style plugins + if(EXISTS "${QT_PLUGINS_DIR}/styles") + install( + DIRECTORY "${QT_PLUGINS_DIR}/styles" + DESTINATION ${PLUGIN_DEST_DIR} + COMPONENT Runtime + REGEX "d\\." EXCLUDE + REGEX "_debug\\." EXCLUDE + REGEX "\\.dSYM" EXCLUDE + ) + endif() endif() configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/install_prereqs.cmake.in"