73
|
1 |
project(hedgewars)
|
|
2 |
|
|
3 |
cmake_minimum_required(VERSION 2.4.0)
|
|
4 |
|
98
|
5 |
set(SHAREPATH share/hedgewars/)
|
|
6 |
|
73
|
7 |
add_subdirectory(QTfrontend)
|
|
8 |
add_subdirectory(hedgewars)
|
98
|
9 |
add_subdirectory(share)
|
91
|
10 |
|
99
|
11 |
if(WIN32 AND NOT UNIX)
|
|
12 |
add_subdirectory(bin)
|
|
13 |
endif(WIN32 AND NOT UNIX)
|
|
14 |
|
91
|
15 |
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a turn-based strategy")
|
|
16 |
set(CPACK_PACKAGE_VENDOR "Hedgewars")
|
|
17 |
set(CPACK_PACKAGE_VERSION_MAJOR "0")
|
|
18 |
set(CPACK_PACKAGE_VERSION_MINOR "2")
|
|
19 |
set(CPACK_PACKAGE_VERSION_PATCH "0")
|
|
20 |
set(CPACK_PACKAGE_FILE_NAME "hedgewars-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
|
|
21 |
set(CPACK_PACKAGE_EXECUTABLES "hedgewars" "hwengine")
|
|
22 |
#set(CPACK_RESOURCE_FILE_LICENSE "COPYING.txt")
|
|
23 |
|
|
24 |
if(WIN32 AND NOT UNIX)
|
|
25 |
set(CPACK_NSIS_DISPLAY_NAME "Hedgewars, a cross-platform, open-source turn-based Worms-like strategy")
|
|
26 |
set(CPACK_NSIS_HELP_LINK "http://www.hedgewars.org/")
|
|
27 |
set(CPACK_NSIS_URL_INFO_ABOUT "http://www.hedgewars.org/")
|
|
28 |
set(CPACK_NSIS_CONTACT "unC0Rr@gmail.com")
|
|
29 |
set(CPACK_NSIS_MODIFY_PATH ON)
|
123
|
30 |
set(CPACK_PACKAGE_EXECUTABLES "hedgewars" "hedgewars")
|
91
|
31 |
else(WIN32 AND NOT UNIX)
|
|
32 |
set(CPACK_STRIP_FILES "bin/hedgewars;bin/hwengine")
|
|
33 |
endif(WIN32 AND NOT UNIX)
|
|
34 |
|
|
35 |
include(CPack)
|
|
36 |
|