- bugfix for manpage location during install on debian

This commit is contained in:
Mark Vejvoda
2011-12-14 08:33:10 +00:00
parent 19d564dcd1
commit 17ce117c18
2 changed files with 26 additions and 8 deletions

View File

@@ -154,10 +154,19 @@ IF(NOT CMAKE_INSTALL_PREFIX STREQUAL "")
${TARGET_NAME}
DESTINATION ${MEGAGLEST_BIN_INSTALL_PATH})
# Installation of the program manpage file
INSTALL(FILES
"${PROJECT_SOURCE_DIR}/mk/linux/${TARGET_NAME_MANPAGE}"
DESTINATION ${MEGAGLEST_MANPAGE_INSTALL_PATH})
# Check if we are running from an SVN folder structure or tarballs
IF(EXISTS "${PROJECT_SOURCE_DIR}/mk/linux/megaglest.desktop")
# Installation of the program manpage file
INSTALL(FILES
"${PROJECT_SOURCE_DIR}/mk/linux/${TARGET_NAME_MANPAGE}"
DESTINATION ${MEGAGLEST_MANPAGE_INSTALL_PATH})
ELSE()
# Installation of the program manpage file
INSTALL(FILES
"${PROJECT_SOURCE_DIR}/${TARGET_NAME_MANPAGE}"
DESTINATION ${MEGAGLEST_MANPAGE_INSTALL_PATH})
ENDIF()
# Installation of the program config and image files
#INSTALL(FILES

View File

@@ -149,10 +149,19 @@ IF(NOT CMAKE_INSTALL_PREFIX STREQUAL "")
${TARGET_NAME}
DESTINATION ${MEGAGLEST_BIN_INSTALL_PATH})
# Installation of the program manpage file
INSTALL(FILES
"${PROJECT_SOURCE_DIR}/mk/linux/${TARGET_NAME_MANPAGE}"
DESTINATION ${MEGAGLEST_MANPAGE_INSTALL_PATH})
# Check if we are running from an SVN folder structure or tarballs
IF(EXISTS "${PROJECT_SOURCE_DIR}/mk/linux/megaglest.desktop")
# Installation of the program manpage file
INSTALL(FILES
"${PROJECT_SOURCE_DIR}/mk/linux/${TARGET_NAME_MANPAGE}"
DESTINATION ${MEGAGLEST_MANPAGE_INSTALL_PATH})
ELSE()
# Installation of the program manpage file
INSTALL(FILES
"${PROJECT_SOURCE_DIR}/${TARGET_NAME_MANPAGE}"
DESTINATION ${MEGAGLEST_MANPAGE_INSTALL_PATH})
ENDIF()
# Installation of the program config and image files
#INSTALL(FILES