cmake_modules/CPackConfig.cmake
author koda
Sat, 09 Mar 2013 00:26:25 +0100
changeset 8698 6714499ecdeb
child 8699 89c339dcc2a4
permissions -rw-r--r--
move cpack stuff in its own cmake file
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
     1
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
     2
# CPack variables
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
     3
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a free turn-based strategy")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
     4
set(CPACK_PACKAGE_VENDOR "Hedgewars Project")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
     5
set(CPACK_PACKAGE_FILE_NAME "hedgewars-${HEDGEWARS_VERSION}")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
     6
set(CPACK_SOURCE_PACKAGE_FILE_NAME "hedgewars-src-${HEDGEWARS_VERSION}")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
     7
set(CPACK_SOURCE_GENERATOR "TBZ2")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
     8
set(CPACK_PACKAGE_EXECUTABLES "hedgewars" "hedgewars")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
     9
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    10
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Hedgewars ${HEDGEWARS_VERSION}")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    11
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    12
if(WIN32 AND NOT UNIX)
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    13
    set(CPACK_NSIS_DISPLAY_NAME "Hedgewars")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    14
    set(CPACK_NSIS_HELP_LINK "http://www.hedgewars.org/")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    15
    set(CPACK_NSIS_URL_INFO_ABOUT "http://www.hedgewars.org/")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    16
    set(CPACK_NSIS_CONTACT "unC0Rr@gmail.com")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    17
    set(CPACK_NSIS_MODIFY_PATH OFF)
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    18
    set(CPACK_NSIS_EXECUTABLES_DIRECTORY "${target_binary_install_dir}")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    19
    set(CPACK_GENERATOR "ZIP;NSIS")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    20
    set(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "hedgewars")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    21
else(WIN32 AND NOT UNIX)
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    22
    set(CPACK_STRIP_FILES "bin/hedgewars;bin/hwengine")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    23
endif(WIN32 AND NOT UNIX)
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    24
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    25
set(CPACK_SOURCE_IGNORE_FILES
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    26
    #temporary files
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    27
    "~"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    28
    ".swp"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    29
    #version control
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    30
    "\\\\.hg"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    31
    #output binary/library
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    32
    "\\\\.exe$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    33
    "\\\\.a$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    34
    "\\\\.so$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    35
    "\\\\.dylib$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    36
    "\\\\.dll$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    37
    "\\\\.ppu$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    38
    "\\\\.o$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    39
    "\\\\.cxx$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    40
    #graphics
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    41
    "\\\\.xcf$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    42
    "\\\\.svg$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    43
    "\\\\.svgz$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    44
    "\\\\.psd$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    45
    "\\\\.sifz$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    46
    #misc
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    47
    "\\\\.core$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    48
    "\\\\.sh$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    49
    "\\\\.orig$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    50
    "\\\\.layout$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    51
    "\\\\.db$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    52
    "\\\\.dof$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    53
    #archives
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    54
    "\\\\.zip$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    55
    "\\\\.gz$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    56
    "\\\\.bz2$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    57
    "\\\\.tmp$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    58
    #cmake-configured files
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    59
    "hwconsts\\\\.cpp$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    60
    "config\\\\.inc$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    61
    "hwengine\\\\.desktop$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    62
    "Info\\\\.plist$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    63
    #other cmake generated files
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    64
    "Makefile"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    65
    "Doxyfile"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    66
    "CMakeFiles"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    67
    "[dD]ebug$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    68
    "[rR]elease$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    69
    "CPack"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    70
    "cmake_install\\\\.cmake$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    71
    "CMakeCache\\\\.txt$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    72
#    "^${CMAKE_CURRENT_SOURCE_DIR}/misc/libtremor"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    73
#    "^${CMAKE_CURRENT_SOURCE_DIR}/misc/libfreetype"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    74
#    "^${CMAKE_CURRENT_SOURCE_DIR}/misc/liblua"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    75
    "^${CMAKE_CURRENT_SOURCE_DIR}/misc/libopenalbridge"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    76
    "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/frontlib"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    77
    "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/promotional_art"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    78
    "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/cmdlineClient"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    79
    "^${CMAKE_CURRENT_SOURCE_DIR}/tools/templates"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    80
    "^${CMAKE_CURRENT_SOURCE_DIR}/bin/checkstack*"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    81
    "^${CMAKE_CURRENT_SOURCE_DIR}/doc"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    82
    "^${CMAKE_CURRENT_SOURCE_DIR}/templates"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    83
    "^${CMAKE_CURRENT_SOURCE_DIR}/tmp"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    84
    "^${CMAKE_CURRENT_SOURCE_DIR}/utils"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    85
    "^${CMAKE_CURRENT_SOURCE_DIR}/share/hedgewars/Data/Maps/test"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    86
    "^${CMAKE_CURRENT_SOURCE_DIR}/install_manifest.txt"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    87
    "^${CMAKE_CURRENT_SOURCE_DIR}/CMakeCache.txt"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    88
    "^${CMAKE_CURRENT_SOURCE_DIR}/hedgewars\\\\."
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    89
)
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    90
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    91
include(CPack)
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    92