git repos / blockattack-game

commit eb29cedf

sago007 · 2016-01-17 15:59
eb29cedf71b41537410c8eb10522e8ef62f30cd9 patch · browse files
parent 2c2c318c141f6a27481aaf62ea7a815d83226b4b

Changed some paths to be absolute

Changed files

M CMakeLists.txt before
diff --git a/CMakeLists.txt b/CMakeLists.txt index 40e44e4..231c9b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -6,9 +6,9 @@ set(BIN_DIR ${blockattack_SOURCE_DIR}/Game)
# Define install paths
set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE STRING "Install executable in this directory")
set(INSTALL_DATA_DIR "${CMAKE_INSTALL_PREFIX}/share/blockattack" CACHE STRING "Install data to this directory")
-set(INSTALL_MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man" CACHE STRING "Install the man page to this directory")
-set(INSTALL_APPLICATIONS_DIR "${CMAKE_INSTALL_PREFIX}/share/applications" CACHE STRING "Install the .desktop file to this directory")
-set(INSTALL_ICONS_DIR "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor" CACHE STRING "Install the icon in a subfolder in this directory")
+set(INSTALL_MAN_DIR "/usr/share/man" CACHE STRING "Install the man page to this directory")
+set(INSTALL_APPLICATIONS_DIR "/usr/share/applications" CACHE STRING "Install the .desktop file to this directory")
+set(INSTALL_ICONS_DIR "/usr/share/icons/hicolor" CACHE STRING "Install the icon in a subfolder in this directory")
#The path to the data dir must be compiled into the binary
add_definitions(-DSHAREDIR=\"${INSTALL_DATA_DIR}\")