Skip to content

Commit

Permalink
build: let it install SVG icons
Browse files Browse the repository at this point in the history
re #222
  • Loading branch information
bk138 committed Oct 6, 2024
1 parent eee8159 commit 151e232
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@ if(UNIX AND NOT APPLE)
install(FILES README.md AUTHORS CHANGELOG.md DESTINATION ${CMAKE_INSTALL_DOCDIR})
install(FILES src/gui/res/multivnc.xpm DESTINATION ${CMAKE_INSTALL_DATADIR}/pixmaps)
install(FILES src/gui/res/net.christianbeier.MultiVNC.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps)
install(FILES src/gui/res/about.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/multivnc)
install(FILES src/gui/res/connect.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/multivnc)
install(FILES src/gui/res/disconnect.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/multivnc)
install(FILES src/gui/res/fullscreen.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/multivnc)
install(FILES src/gui/res/listen.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/multivnc)
install(FILES src/gui/res/multicast.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/multivnc)
install(FILES src/gui/res/one-to-one.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/multivnc)
install(FILES src/gui/res/record.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/multivnc)
install(FILES src/gui/res/replay.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/multivnc)
install(FILES src/gui/res/screenshot.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/multivnc)
install(FILES src/gui/res/stop.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/multivnc)
install(FILES src/gui/res/toggle-keyboard-grab.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/multivnc)
install(FILES src/gui/res/unicast.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/multivnc)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/de.gmo DESTINATION ${CMAKE_INSTALL_DATADIR}/locale/de/LC_MESSAGES/ RENAME ${LOCALE_DOMAIN}.mo)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/es.gmo DESTINATION ${CMAKE_INSTALL_DATADIR}/locale/es/LC_MESSAGES/ RENAME ${LOCALE_DOMAIN}.mo)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sv.gmo DESTINATION ${CMAKE_INSTALL_DATADIR}/locale/sv/LC_MESSAGES/ RENAME ${LOCALE_DOMAIN}.mo)
Expand All @@ -64,6 +77,19 @@ fixup_bundle(\"${APPS}\" \"\" \"${DIRS}\")
" COMPONENT Runtime)
INSTALL(TARGETS MultiVNC BUNDLE DESTINATION . COMPONENT Runtime)
INSTALL(FILES README.md DESTINATION . RENAME Readme.txt)
install(FILES src/gui/res/about.svg DESTINATION MultiVNC.app/Contents/Resources)
install(FILES src/gui/res/connect.svg DESTINATION MultiVNC.app/Contents/Resources)
install(FILES src/gui/res/disconnect.svg DESTINATION MultiVNC.app/Contents/Resources)
install(FILES src/gui/res/fullscreen.svg DESTINATION MultiVNC.app/Contents/Resources)
install(FILES src/gui/res/listen.svg DESTINATION MultiVNC.app/Contents/Resources)
install(FILES src/gui/res/multicast.svg DESTINATION MultiVNC.app/Contents/Resources)
install(FILES src/gui/res/one-to-one.svg DESTINATION MultiVNC.app/Contents/Resources)
install(FILES src/gui/res/record.svg DESTINATION MultiVNC.app/Contents/Resources)
install(FILES src/gui/res/replay.svg DESTINATION MultiVNC.app/Contents/Resources)
install(FILES src/gui/res/screenshot.svg DESTINATION MultiVNC.app/Contents/Resources)
install(FILES src/gui/res/stop.svg DESTINATION MultiVNC.app/Contents/Resources)
install(FILES src/gui/res/toggle-keyboard-grab.svg MultiVNC.app/Contents/Resources)
install(FILES src/gui/res/unicast.svg DESTINATION MultiVNC.app/Contents/Resources)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/de.gmo DESTINATION MultiVNC.app/Contents/Resources/de.lproj RENAME ${LOCALE_DOMAIN}.mo)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/es.gmo DESTINATION MultiVNC.app/Contents/Resources/es.lproj RENAME ${LOCALE_DOMAIN}.mo)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sv.gmo DESTINATION MultiVNC.app/Contents/Resources/sv.lproj RENAME ${LOCALE_DOMAIN}.mo)
Expand Down

0 comments on commit 151e232

Please sign in to comment.