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