macOS: Deploy plugins only for non-static builds

This commit is contained in:
Adam Strzelecki 2023-02-12 22:41:19 +01:00
parent 2c4b3c2157
commit ea1531bc8f
3 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ INSTALL(TARGETS ${QUCS_NAME}attenuator
# Install needed Qt plugins by copying directories from the qt installation
# One can cull what gets copied by using 'REGEX "..." EXCLUDE'
#
IF(APPLE)
IF(APPLE AND QT_PLUGINS_DIR)
INSTALL(DIRECTORY "${QT_PLUGINS_DIR}/imageformats" DESTINATION bin/${plugin_dest_dir}/plugins COMPONENT Runtime)
ENDIF()
#

View File

@ -165,7 +165,7 @@ INSTALL(TARGETS ${QUCS_NAME}trans
# Install needed Qt plugins by copying directories from the qt installation
# One can cull what gets copied by using 'REGEX "..." EXCLUDE'
#
IF(APPLE)
IF(APPLE AND QT_PLUGINS_DIR)
INSTALL(DIRECTORY "${QT_PLUGINS_DIR}/imageformats" DESTINATION bin/${plugin_dest_dir}/plugins COMPONENT Runtime)
ENDIF()
#

View File

@ -285,7 +285,7 @@ INSTALL(TARGETS ${QUCS_NAME}
# Install needed Qt plugins by copying directories from the qt installation
# One can cull what gets copied by using 'REGEX "..." EXCLUDE'
#
IF(APPLE)
IF(APPLE AND QT_PLUGINS_DIR)
INSTALL(DIRECTORY "${QT_PLUGINS_DIR}/imageformats" DESTINATION bin/${plugin_dest_dir}/plugins COMPONENT Runtime)
ENDIF()
#