- attempt to fix make install for svn dev version

This commit is contained in:
Mark Vejvoda 2011-06-02 15:10:28 +00:00
parent 95755ad832
commit 9d44f5ad4f

View File

@ -212,24 +212,49 @@ IF(NOT CMAKE_INSTALL_PREFIX STREQUAL "")
${TARGET_NAME} ${TARGET_NAME}
DESTINATION ${MEGAGLEST_BIN_INSTALL_PATH}) DESTINATION ${MEGAGLEST_BIN_INSTALL_PATH})
# Installation of the program desktop file # Check if we are running from an SVN folder structure or tarballs
INSTALL(FILES IF(EXISTS "${PROJECT_SOURCE_DIR}/../glest_game/")
"${PROJECT_SOURCE_DIR}/megaglest.desktop" MESSAGE(STATUS "**Source package detected svn folder structure.")
DESTINATION ${MEGAGLEST_DESKTOP_INSTALL_PATH})
# Installation of the program desktop icon file # Installation of the program desktop file
INSTALL(FILES INSTALL(FILES
"${PROJECT_SOURCE_DIR}/megaglest.png" "${PROJECT_SOURCE_DIR}/../../mk/linux/megaglest.desktop"
"${PROJECT_SOURCE_DIR}/megaglest.bmp" DESTINATION ${MEGAGLEST_DESKTOP_INSTALL_PATH})
"${PROJECT_SOURCE_DIR}/editor.ico"
"${PROJECT_SOURCE_DIR}/glest.ico"
"${PROJECT_SOURCE_DIR}/g3dviewer.ico"
DESTINATION ${MEGAGLEST_ICON_INSTALL_PATH})
# Installation of the program manpage file # Installation of the program desktop icon file
INSTALL(FILES INSTALL(FILES
"${PROJECT_SOURCE_DIR}/megaglest.6" "${PROJECT_SOURCE_DIR}/../../mk/linux/megaglest.png"
DESTINATION ${MEGAGLEST_MANPAGE_INSTALL_PATH}) "${PROJECT_SOURCE_DIR}/../../mk/linux/megaglest.bmp"
"${PROJECT_SOURCE_DIR}/../../data/glest_game/editor.ico"
"${PROJECT_SOURCE_DIR}/../../mk/linux/glest.ico"
"${PROJECT_SOURCE_DIR}/../../data/glest_game/g3dviewer.ico"
DESTINATION ${MEGAGLEST_ICON_INSTALL_PATH})
#ENDIF() # Installation of the program manpage file
INSTALL(FILES
"${PROJECT_SOURCE_DIR}/../../mk/linux/megaglest.6"
DESTINATION ${MEGAGLEST_MANPAGE_INSTALL_PATH})
ELSE()
# Installation of the program desktop file
INSTALL(FILES
"${PROJECT_SOURCE_DIR}/megaglest.desktop"
DESTINATION ${MEGAGLEST_DESKTOP_INSTALL_PATH})
# Installation of the program desktop icon file
INSTALL(FILES
"${PROJECT_SOURCE_DIR}/megaglest.png"
"${PROJECT_SOURCE_DIR}/megaglest.bmp"
"${PROJECT_SOURCE_DIR}/editor.ico"
"${PROJECT_SOURCE_DIR}/glest.ico"
"${PROJECT_SOURCE_DIR}/g3dviewer.ico"
DESTINATION ${MEGAGLEST_ICON_INSTALL_PATH})
# Installation of the program manpage file
INSTALL(FILES
"${PROJECT_SOURCE_DIR}/megaglest.6"
DESTINATION ${MEGAGLEST_MANPAGE_INSTALL_PATH})
ENDIF()
ENDIF() ENDIF()