diff options
author | Juhani Numminen <juhaninumminen0@gmail.com> | 2012-01-22 10:19:06 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-02-28 21:03:38 +0200 |
commit | c8ec71150363ce146830ab72790eee2c598e4589 (patch) | |
tree | 9b1216957de402b788416ef8c4595406924f0fb7 | |
parent | 0f8b91bfba56bf75eee459f25237c67f32bc0c1a (diff) | |
download | minetest-c8ec71150363ce146830ab72790eee2c598e4589.tar.gz minetest-c8ec71150363ce146830ab72790eee2c598e4589.tar.bz2 minetest-c8ec71150363ce146830ab72790eee2c598e4589.zip |
Install icon and .desktop file on Unix systems
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ef9016526..f539b625d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,12 +64,19 @@ elseif(UNIX) # Linux, BSD etc set(BINDIR "bin") set(DOCDIR "share/doc/${PROJECT_NAME}") set(EXAMPLE_CONF_DIR "share/doc/${PROJECT_NAME}") + set(XDG_APPS_DIR "share/applications") + set(ICONDIR "share/icons") endif() install(FILES "README.txt" DESTINATION "${DOCDIR}") install(FILES "doc/changelog.txt" DESTINATION "${DOCDIR}") install(FILES "minetest.conf.example" DESTINATION "${DOCDIR}") +if(UNIX) + install(FILES "misc/minetest.desktop" DESTINATION "${XDG_APPS_DIR}") + install(FILES "minetest-icon.svg" DESTINATION "${ICONDIR}/hicolor/scalable/apps") +endif() + # # Subdirectories # Be sure to add all relevant definitions above this |