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