Install .desktop file and additional icon sizes

This commit is contained in:
snow flurry
2022-07-10 14:04:38 -07:00
parent e98913f182
commit 65db1b8eb4
8 changed files with 21 additions and 0 deletions

View File

@@ -160,6 +160,7 @@ add_subdirectory("${PROJECT_TOP}/repos/cimgui" "${CMAKE_BINARY_DIR}/cimgui" E
add_subdirectory(displayservers)
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})
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}
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)