author | unc0rr |
Mon, 07 May 2007 21:12:06 +0000 | |
changeset 510 | 4e994e1b7abb |
parent 501 | 35b8c6c4e7e1 |
child 546 | 0e7cc3fb05cd |
permissions | -rw-r--r-- |
184 | 1 |
project(hedgewars) |
2 |
||
499 | 3 |
cmake_minimum_required(VERSION 2.4.4 FATAL_ERROR) |
184 | 4 |
|
266 | 5 |
if(DEFINED DATA_INSTALL_DIR) |
262 | 6 |
set(SHAREPATH ${DATA_INSTALL_DIR}/hedgewars/) |
266 | 7 |
else(DEFINED DATA_INSTALL_DIR) |
262 | 8 |
set(SHAREPATH share/hedgewars/) |
266 | 9 |
endif(DEFINED DATA_INSTALL_DIR) |
220 | 10 |
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) |
184 | 11 |
|
501
35b8c6c4e7e1
Increase "proto version", as the current engine isn't compatible with 0.9 one
unc0rr
parents:
499
diff
changeset
|
12 |
set(HEDGEWARS_PROTO_VER 5) |
271 | 13 |
|
223 | 14 |
add_subdirectory(bin) |
184 | 15 |
add_subdirectory(QTfrontend) |
16 |
add_subdirectory(hedgewars) |
|
17 |
add_subdirectory(share) |
|
18 |
||
19 |
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a turn-based strategy") |
|
20 |
set(CPACK_PACKAGE_VENDOR "Hedgewars") |
|
21 |
set(CPACK_PACKAGE_VERSION_MAJOR "0") |
|
360 | 22 |
set(CPACK_PACKAGE_VERSION_MINOR "9") |
23 |
set(CPACK_PACKAGE_VERSION_PATCH "0") |
|
184 | 24 |
set(CPACK_PACKAGE_FILE_NAME "hedgewars-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") |
223 | 25 |
set(CPACK_PACKAGE_EXECUTABLES "hedgewars" "hedgewars") |
458 | 26 |
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING") |
223 | 27 |
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Hedgewars ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") |
184 | 28 |
|
29 |
if(WIN32 AND NOT UNIX) |
|
223 | 30 |
set(CPACK_NSIS_DISPLAY_NAME "Hedgewars, a turn-based Worms-like strategy") |
184 | 31 |
set(CPACK_NSIS_HELP_LINK "http://www.hedgewars.org/") |
32 |
set(CPACK_NSIS_URL_INFO_ABOUT "http://www.hedgewars.org/") |
|
33 |
set(CPACK_NSIS_CONTACT "unC0Rr@gmail.com") |
|
34 |
set(CPACK_NSIS_MODIFY_PATH ON) |
|
35 |
else(WIN32 AND NOT UNIX) |
|
36 |
set(CPACK_STRIP_FILES "bin/hedgewars;bin/hwengine") |
|
37 |
endif(WIN32 AND NOT UNIX) |
|
38 |
||
39 |
include(CPack) |
|
40 |