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