mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
Install .desktop file and additional icon sizes
This commit is contained in:
parent
e98913f182
commit
65db1b8eb4
@ -160,6 +160,7 @@ add_subdirectory("${PROJECT_TOP}/repos/cimgui" "${CMAKE_BINARY_DIR}/cimgui" E
|
|||||||
add_subdirectory(displayservers)
|
add_subdirectory(displayservers)
|
||||||
add_subdirectory(renderers)
|
add_subdirectory(renderers)
|
||||||
|
|
||||||
|
configure_file("${PROJECT_TOP}/resources/looking-glass-client.desktop.in" "${CMAKE_BINARY_DIR}/resources/looking-glass-client.desktop" @ONLY)
|
||||||
add_executable(looking-glass-client ${SOURCES})
|
add_executable(looking-glass-client ${SOURCES})
|
||||||
|
|
||||||
target_compile_definitions(looking-glass-client PRIVATE CIMGUI_DEFINE_ENUMS_AND_STRUCTS=1)
|
target_compile_definitions(looking-glass-client PRIVATE CIMGUI_DEFINE_ENUMS_AND_STRUCTS=1)
|
||||||
@ -190,4 +191,13 @@ install(TARGETS looking-glass-client
|
|||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
COMPONENT binary)
|
COMPONENT binary)
|
||||||
|
|
||||||
|
install(FILES "${CMAKE_BINARY_DIR}/resources/looking-glass-client.desktop"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
|
||||||
|
# Install desktop icons
|
||||||
|
foreach(SIZE 16 24 32 48 64 96 128)
|
||||||
|
install(FILES "${PROJECT_TOP}/resources/icon-${SIZE}x${SIZE}.png"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/${SIZE}x${SIZE}/apps"
|
||||||
|
RENAME "looking-glass.png")
|
||||||
|
endforeach()
|
||||||
|
|
||||||
feature_summary(WHAT ENABLED_FEATURES DISABLED_FEATURES)
|
feature_summary(WHAT ENABLED_FEATURES DISABLED_FEATURES)
|
||||||
|
BIN
resources/icon-16x16.png
Normal file
BIN
resources/icon-16x16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
resources/icon-24x24.png
Normal file
BIN
resources/icon-24x24.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
resources/icon-32x32.png
Normal file
BIN
resources/icon-32x32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
resources/icon-48x48.png
Normal file
BIN
resources/icon-48x48.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
resources/icon-64x64.png
Normal file
BIN
resources/icon-64x64.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
resources/icon-96x96.png
Normal file
BIN
resources/icon-96x96.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
11
resources/looking-glass-client.desktop.in
Normal file
11
resources/looking-glass-client.desktop.in
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Version=1.0
|
||||||
|
Name=Looking Glass Client
|
||||||
|
Comment=Clent for Looking Glass KVMFR
|
||||||
|
Icon=looking-glass
|
||||||
|
Exec=@CMAKE_INSTALL_PREFIX@/bin/looking-glass-client
|
||||||
|
Terminal=false
|
||||||
|
Categories=System;
|
||||||
|
StartupWMClass=looking-glass-client
|
||||||
|
SingleMainWindow=true
|
Loading…
Reference in New Issue
Block a user