--- CMakeLists.txt.orig	2022-11-27 15:27:14 UTC
+++ CMakeLists.txt
@@ -265,8 +265,9 @@ IF(NOT DONTCREATEVFS)
     )
 ENDIF(NOT DONTCREATEVFS)
 
+include(GNUInstallDirs)
 
-INSTALL(TARGETS astromenace DESTINATION ${CMAKE_INSTALL_PREFIX})
+INSTALL(TARGETS astromenace)
 IF(MINGW)
     INSTALL(FILES "${DEPS_PATH}/bin/SDL2.dll"          DESTINATION ${CMAKE_INSTALL_PREFIX})
     INSTALL(FILES "${DEPS_PATH}/bin/libalut.dll"       DESTINATION ${CMAKE_INSTALL_PREFIX})
@@ -277,5 +278,5 @@ IF(MINGW)
     INSTALL(FILES "${DEPS_PATH}/bin/libfreetype.dll"   DESTINATION ${CMAKE_INSTALL_PREFIX})
 ENDIF(MINGW)
 IF(NOT DONTCREATEVFS)
-    INSTALL(FILES "${PROJECT_BINARY_DIR}/gamedata.vfs"   DESTINATION ${CMAKE_INSTALL_PREFIX})
+    INSTALL(FILES "${PROJECT_BINARY_DIR}/gamedata.vfs" DESTINATION ${CMAKE_INSTALL_DATADIR}/astromenace)
 ENDIF(NOT DONTCREATEVFS)
