cmake_modules/CPackConfig.cmake
changeset 8699 89c339dcc2a4
parent 8698 6714499ecdeb
child 8700 7e84ea0d9cef
equal deleted inserted replaced
8698:6714499ecdeb 8699:89c339dcc2a4
       
     1 
       
     2 # revision information in cpack-generated names
       
     3 if(CMAKE_BUILD_TYPE MATCHES DEBUG)
       
     4     set(full_suffix "${HEDGEWARS_VERSION}-r${HEDGEWARS_REVISION}")
       
     5 else()
       
     6     set(full_suffix "${HEDGEWARS_VERSION}")
       
     7 endif()
     1 
     8 
     2 # CPack variables
     9 # CPack variables
     3 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a free turn-based strategy")
    10 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a free turn-based strategy")
     4 set(CPACK_PACKAGE_VENDOR "Hedgewars Project")
    11 set(CPACK_PACKAGE_VENDOR "Hedgewars Project")
     5 set(CPACK_PACKAGE_FILE_NAME "hedgewars-${HEDGEWARS_VERSION}")
    12 set(CPACK_PACKAGE_FILE_NAME "hedgewars-${full_suffix}")
     6 set(CPACK_SOURCE_PACKAGE_FILE_NAME "hedgewars-src-${HEDGEWARS_VERSION}")
    13 set(CPACK_SOURCE_PACKAGE_FILE_NAME "hedgewars-src-${full_suffix}")
     7 set(CPACK_SOURCE_GENERATOR "TBZ2")
    14 set(CPACK_SOURCE_GENERATOR "TBZ2")
     8 set(CPACK_PACKAGE_EXECUTABLES "hedgewars" "hedgewars")
    15 set(CPACK_PACKAGE_EXECUTABLES "hedgewars" "hedgewars")
     9 set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
    16 set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
    10 set(CPACK_PACKAGE_INSTALL_DIRECTORY "Hedgewars ${HEDGEWARS_VERSION}")
    17 set(CPACK_PACKAGE_INSTALL_DIRECTORY "Hedgewars ${full_suffix}")
    11 
    18 
    12 if(WIN32 AND NOT UNIX)
    19 if(WIN32 AND NOT UNIX)
    13     set(CPACK_NSIS_DISPLAY_NAME "Hedgewars")
    20     set(CPACK_NSIS_DISPLAY_NAME "Hedgewars")
    14     set(CPACK_NSIS_HELP_LINK "http://www.hedgewars.org/")
    21     set(CPACK_NSIS_HELP_LINK "http://www.hedgewars.org/")
    15     set(CPACK_NSIS_URL_INFO_ABOUT "http://www.hedgewars.org/")
    22     set(CPACK_NSIS_URL_INFO_ABOUT "http://www.hedgewars.org/")