Fix icons in Spectrum Analyzer (#7667)

Make Qt::Svg mandatory; bundle svg libraries
This commit is contained in:
Tres Finocchiaro
2025-01-27 21:58:15 -05:00
committed by GitHub
parent 6259561fc7
commit 2c674eca3a
2 changed files with 6 additions and 2 deletions

View File

@@ -171,7 +171,7 @@ check_library_exists(rt shm_open "" LMMS_HAVE_LIBRT)
LIST(APPEND CMAKE_PREFIX_PATH "${CMAKE_INSTALL_PREFIX}")
FIND_PACKAGE(Qt5 5.9.0 COMPONENTS Core Gui Widgets Xml REQUIRED)
FIND_PACKAGE(Qt5 5.9.0 COMPONENTS Core Gui Widgets Xml Svg REQUIRED)
FIND_PACKAGE(Qt5 COMPONENTS LinguistTools QUIET)
include_directories(SYSTEM
@@ -186,6 +186,7 @@ SET(QT_LIBRARIES
Qt5::Gui
Qt5::Widgets
Qt5::Xml
Qt5::Svg
)
IF(LMMS_BUILD_LINUX AND WANT_VST)

View File

@@ -1,6 +1,9 @@
SET(PLUGIN_FILES "")
IF(LMMS_BUILD_WIN32)
INSTALL(FILES $<TARGET_FILE:Qt5::QWindowsIntegrationPlugin> DESTINATION platforms)
INSTALL(FILES $<TARGET_FILE:Qt5::QWindowsIntegrationPlugin> DESTINATION platforms)
INSTALL(FILES $<TARGET_FILE:Qt5::QSvgIconPlugin> DESTINATION iconengines)
INSTALL(FILES $<TARGET_FILE:Qt5::QSvgPlugin> DESTINATION imageformats)
INSTALL(FILES $<TARGET_FILE:Qt5::Svg> DESTINATION .)
ENDIF()
IF(LMMS_BUILD_WIN32 OR LMMS_INSTALL_DEPENDENCIES)