From e4d4bc097c2ab4a07eb04c76dfea6e5f6e93892e Mon Sep 17 00:00:00 2001 From: Vitaly Date: Wed, 22 May 2024 09:59:03 +0200 Subject: [PATCH] Added metainfo file to the installation. 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. --- src/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ad69522ee..81c402200 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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()