Browse Source

Add linux install commands to cmake

Bart van Strien 1 year ago
parent
commit
5c0e4d0b62
1 changed files with 13 additions and 0 deletions
  1. 13 0
      CMakeLists.txt

+ 13 - 0
CMakeLists.txt

@@ -2187,4 +2187,17 @@ elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
 	configure_file(platform/unix/debian/rules.in debian/rules @ONLY)
 
 	configure_file(platform/unix/love.desktop.in love.desktop @ONLY)
+
+	install(TARGETS ${LOVE_EXE_NAME} ${LOVE_LIB_NAME})
+	install(FILES platform/unix/love.6
+			DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
+			RENAME love.1)
+	install(FILES ${CMAKE_CURRENT_BINARY_DIR}/love.desktop
+			DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
+	install(FILES platform/unix/love.xml
+			DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/mime/packages)
+	install(FILES platform/unix/love.svg
+			DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pixmaps)
+	install(FILES platform/unix/application-x-love-game.svg
+			DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/mimetypes)
 endif()