From 3a77df6dd55ac642649804b26e8ba67ee428921f Mon Sep 17 00:00:00 2001 From: uvos Date: Mon, 5 Jul 2021 11:48:03 +0200 Subject: [PATCH] add .desktop file --- CMakeLists.txt | 5 +++++ MAClient.desktop | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 MAClient.desktop diff --git a/CMakeLists.txt b/CMakeLists.txt index ccd29a8..f4e3825 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,3 +55,8 @@ add_executable(MAClient ${PROJECT_SOURCES}) target_compile_options(MAClient PRIVATE "-std=gnu++17" "-Wall" "-O2" "-fno-strict-aliasing") target_link_libraries(MAClient PRIVATE Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Concurrent ${OpenCV_LIBS} -luvoscam -luvosled -luvosunwrap) target_include_directories(${PROJECT_NAME} PRIVATE ${OpenCV_INCLUDE_DIRS} src src/ui) + +set(CMAKE_INSTALL_PREFIX "/usr") +install(FILES res/icon.png DESTINATION /usr/share/icons RENAME MAClient.png) +install(FILES MAClient.desktop DESTINATION /usr/share/applications) +install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin) diff --git a/MAClient.desktop b/MAClient.desktop new file mode 100644 index 0000000..0df78d2 --- /dev/null +++ b/MAClient.desktop @@ -0,0 +1,15 @@ +[Desktop Entry] +# The type as listed above +Type=Application +# The version of the desktop entry specification to which this file complies +Version=1.0 +# The name of the application +Name=Lubricant Thickness Detector +# A comment which can/will be used as a tooltip +Comment=MAClient +# The executable of the application, possibly with arguments. +Exec=MAClient +# The name of the icon that will be used to display this entry +Icon=MAClient +# Describes whether this application needs to be run in a terminal or not +Terminal=false