Commit 3ce2e39f authored by Ildar Mulyukov's avatar Ildar Mulyukov

fix installation paths

also fixes commit 7e78135a
parent 43060a5f
OPTION(CREATE_DEBS "Will create DEBs" No)
OPTION(CREATE_RPMS "Will create RPMs" No)
SET(CGENIUS_DESKTOP_DIR "usr/share/applications/")
SET(CGENIUS_DESKTOP_DIR "share/applications/")
# Now let's setup the package for installation. You can create the package of the chosen build
......
......@@ -10,7 +10,7 @@ SET(SHAREDIR share CACHE PATH "System share dir location")
# for cases where we want /usr/share/games for the data
# and /usr/share for desktop-files/pixmaps and such
#SET(GAMES_SHAREDIR "${SHAREDIR}" CACHE PATH "Game data root dir")
SET(GAMES_SHAREDIR "usr/local/share/games/" CACHE PATH "Game data root dir")
SET(GAMES_SHAREDIR "share/games/" CACHE PATH "Game data root dir")
SET(DATADIR "${GAMES_SHAREDIR}/commandergenius")
SET(APPDIR games CACHE PATH "Binary destination")
SET(DOCDIR ${DATADIR} CACHE PATH "Docs destination")
......@@ -22,7 +22,7 @@ INSTALL(TARGETS CGeniusExe
# This will copy the resources files to the proper directory
IF(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/vfsroot")
INSTALL(DIRECTORY vfsroot/
INSTALL(DIRECTORY "${CMAKE_SOURCE_DIR}/vfsroot/"
DESTINATION ${DATADIR})
ENDIF(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/vfsroot")
......@@ -31,7 +31,7 @@ INSTALL(FILES "${CMAKE_BINARY_DIR}/README"
DESTINATION ${DOCDIR})
# This will copy the readme file.
INSTALL(FILES changelog.txt
INSTALL(FILES "${CMAKE_SOURCE_DIR}/changelog.txt"
DESTINATION ${DOCDIR})
# Windows might not have those dlls so we ship them with the packages
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment