diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index eeeb3eb0..e0e1cbcd 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -147,6 +147,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) @@ -177,4 +178,10 @@ 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(FILES "${PROJECT_TOP}/resources/lg-logo.svg" + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps" + RENAME "looking-glass.svg") + feature_summary(WHAT ENABLED_FEATURES DISABLED_FEATURES) diff --git a/resources/looking-glass-client.desktop.in b/resources/looking-glass-client.desktop.in new file mode 100644 index 00000000..b88c548d --- /dev/null +++ b/resources/looking-glass-client.desktop.in @@ -0,0 +1,12 @@ +[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 +Keywords=KVM +Categories=System; +StartupWMClass=looking-glass-client +SingleMainWindow=true