CMakeLists.txt 813 B

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