Mercurial > sumwars
changeset 2007:d72a92c70150
Use directory for config/data files derived from the CMAKE_INSTALL_PREFIX specified when building with cmake, so in this way people can install in Unix into /opt or /usr/local and not just /usr, and the game will work (hopefully\!)
author | mafm |
---|---|
date | Sun, 30 Oct 2011 22:40:28 +0000 |
parents | b5e34c313765 |
children | 62f88a7d0ed5 |
files | CMakeLists.txt |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Sun Oct 30 22:30:01 2011 +0000 +++ b/CMakeLists.txt Sun Oct 30 22:40:28 2011 +0000 @@ -494,7 +494,7 @@ DESTINATION share/icons/hicolor/128x128/ RENAME sumwars.png) -execute_process(COMMAND sed -i "s|\\=\\./|\\=/usr/share/games/sumwars/|g" "${CMAKE_CURRENT_SOURCE_DIR}/resources.cfg") +execute_process(COMMAND sed -i "s|\\=\\./|\\=${CFG_FILES_DIR}|g" "${CMAKE_CURRENT_SOURCE_DIR}/resources.cfg") install(FILES authors.txt DESTINATION share/games/sumwars) install(FILES resources.cfg ogre.cfg plugins.cfg