CMakeLists.txt 1009 B

123456789101112131415161718192021
  1. INSTALL(FILES lmms.svg DESTINATION "${DATA_DIR}/icons/hicolor/scalable/apps")
  2. INSTALL(FILES project.svg DESTINATION "${DATA_DIR}/icons/hicolor/scalable/mimetypes/" RENAME "application-x-lmms-project.svg")
  3. INSTALL(FILES lmms.desktop DESTINATION "${DATA_DIR}/applications")
  4. INSTALL(FILES lmms.xml DESTINATION "${DATA_DIR}/mime/packages")
  5. # AppImage creation target
  6. SET(APPIMAGE_FILE "${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}-${VERSION}-linux-${CMAKE_SYSTEM_PROCESSOR}.AppImage")
  7. CONFIGURE_FILE("package_linux.sh.in" "${CMAKE_BINARY_DIR}/package_linux.sh" @ONLY)
  8. FILE(REMOVE "${APPIMAGE_FILE}")
  9. ADD_CUSTOM_TARGET(removeappimage
  10. COMMAND rm -f "${APPIMAGE_FILE}"
  11. COMMENT "Removing old AppImage")
  12. ADD_CUSTOM_TARGET(appimage
  13. COMMAND chmod +x "${CMAKE_BINARY_DIR}/package_linux.sh"
  14. COMMAND "${CMAKE_BINARY_DIR}/package_linux.sh"
  15. COMMENT "Generating AppImage"
  16. WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
  17. ADD_DEPENDENCIES(appimage removeappimage)