add .desktop file
This commit is contained in:
		
							parent
							
								
									48a04fdf79
								
							
						
					
					
						commit
						3a77df6dd5
					
				
					 2 changed files with 20 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										15
									
								
								MAClient.desktop
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								MAClient.desktop
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue