summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-04-22 13:34:42 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-05-13 19:48:06 +0200
commitd0ee89e2fe66c99c4958c887255326aa60b8a76e (patch)
treea93a81e0a05ab5dc7d548302a778744afe76884f /CMakeLists.txt
parentMerge pull request #756 from purpasmart96/ptm_service_changes (diff)
downloadyuzu-d0ee89e2fe66c99c4958c887255326aa60b8a76e.tar
yuzu-d0ee89e2fe66c99c4958c887255326aa60b8a76e.tar.gz
yuzu-d0ee89e2fe66c99c4958c887255326aa60b8a76e.tar.bz2
yuzu-d0ee89e2fe66c99c4958c887255326aa60b8a76e.tar.lz
yuzu-d0ee89e2fe66c99c4958c887255326aa60b8a76e.tar.xz
yuzu-d0ee89e2fe66c99c4958c887255326aa60b8a76e.tar.zst
yuzu-d0ee89e2fe66c99c4958c887255326aa60b8a76e.zip
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b0fe285db..dc525aa3d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -193,3 +193,16 @@ if(ENABLE_QT)
add_subdirectory(externals/qhexedit)
endif()
add_subdirectory(src)
+
+# Install freedesktop.org metadata files, following those specifications:
+# http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
+# http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
+# http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html
+if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|OpenBSD|NetBSD")
+ install(FILES "${CMAKE_SOURCE_DIR}/dist/citra.desktop"
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications")
+ install(FILES "${CMAKE_SOURCE_DIR}/dist/citra.svg"
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/share/pixmaps")
+ install(FILES "${CMAKE_SOURCE_DIR}/dist/citra.xml"
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/share/mime/packages")
+endif()