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