Install vector program icon on Linux

The icon is copied from icons/qbittorrent-tray.svg as there is no way to
install a file and rename it in qmake.
This commit is contained in:
Chocobo1 2021-04-10 16:24:10 +08:00
commit f457069881
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
3 changed files with 32 additions and 84 deletions

View file

@ -30,12 +30,6 @@ install(FILES ${MAN_FILES}
)
if (GUI)
install(DIRECTORY menuicons/
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor
COMPONENT data
FILES_MATCHING PATTERN "*.png"
)
install(FILES org.qbittorrent.qBittorrent.desktop
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/
COMPONENT data
@ -46,6 +40,11 @@ if (GUI)
COMPONENT data
)
install(DIRECTORY menuicons/
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor
COMPONENT data
)
install(FILES
${PROJECT_SOURCE_DIR}/src/icons/qbittorrent-tray.svg
${PROJECT_SOURCE_DIR}/src/icons/qbittorrent-tray-dark.svg