From 151e2323d9dd72da1174f879c326b5f527c74ad4 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sun, 6 Oct 2024 17:47:11 +0200 Subject: [PATCH] build: let it install SVG icons re #222 --- CMakeLists.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d6b14632..ef693f05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) @@ -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)