Skip to content

Commit

Permalink
Added metainfo file to the installation.
Browse files Browse the repository at this point in the history
Switched from hardcoded directory name to CMAKE_INSTALL_DATAROOTDIR
use.

Removed the COMPONENT option from the desktop file installation
entry since the file is not a development file and is always needed.
  • Loading branch information
xvitaly committed May 22, 2024
1 parent 8251f7e commit e4d4bc0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,9 @@ endforeach()

if(UNIX AND NOT APPLE)
install(FILES "img/cutter.svg"
DESTINATION "share/icons/hicolor/scalable/apps/")
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps")
install(FILES "re.rizin.cutter.desktop"
DESTINATION "share/applications"
COMPONENT Devel)
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
install(FILES "re.rizin.cutter.appdata.xml"
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo")
endif()

0 comments on commit e4d4bc0

Please sign in to comment.