Skip to content

Commit

Permalink
Fix icons in Spectrum Analyzer (LMMS#7667)
Browse files Browse the repository at this point in the history
Make Qt::Svg mandatory; bundle svg libraries
  • Loading branch information
tresf authored Jan 28, 2025
1 parent 6259561 commit 2c674ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -186,6 +186,7 @@ SET(QT_LIBRARIES
Qt5::Gui
Qt5::Widgets
Qt5::Xml
Qt5::Svg
)

IF(LMMS_BUILD_LINUX AND WANT_VST)
Expand Down
5 changes: 4 additions & 1 deletion cmake/install/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 2c674ec

Please sign in to comment.