author | unc0rr |
Sun, 30 Sep 2007 14:43:15 +0000 | |
changeset 616 | 00928b3cf505 |
parent 605 | 2651c3fe4567 |
child 649 | 26166c87dc75 |
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 |
|
605 | 12 |
set(HEDGEWARS_PROTO_VER 7) |
271 | 13 |
|
223 | 14 |
add_subdirectory(bin) |
184 | 15 |
add_subdirectory(QTfrontend) |
16 |
add_subdirectory(hedgewars) |
|
17 |
add_subdirectory(share) |
|
18 |
||
584
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
19 |
# CPack vars |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
20 |
|
184 | 21 |
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a turn-based strategy") |
22 |
set(CPACK_PACKAGE_VENDOR "Hedgewars") |
|
23 |
set(CPACK_PACKAGE_VERSION_MAJOR "0") |
|
360 | 24 |
set(CPACK_PACKAGE_VERSION_MINOR "9") |
25 |
set(CPACK_PACKAGE_VERSION_PATCH "0") |
|
184 | 26 |
set(CPACK_PACKAGE_FILE_NAME "hedgewars-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") |
584
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
27 |
set(CPACK_SOURCE_PACKAGE_FILE_NAME "hedgewars-src-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") |
223 | 28 |
set(CPACK_PACKAGE_EXECUTABLES "hedgewars" "hedgewars") |
458 | 29 |
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING") |
223 | 30 |
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Hedgewars ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") |
184 | 31 |
|
32 |
if(WIN32 AND NOT UNIX) |
|
223 | 33 |
set(CPACK_NSIS_DISPLAY_NAME "Hedgewars, a turn-based Worms-like strategy") |
184 | 34 |
set(CPACK_NSIS_HELP_LINK "http://www.hedgewars.org/") |
35 |
set(CPACK_NSIS_URL_INFO_ABOUT "http://www.hedgewars.org/") |
|
36 |
set(CPACK_NSIS_CONTACT "unC0Rr@gmail.com") |
|
37 |
set(CPACK_NSIS_MODIFY_PATH ON) |
|
38 |
else(WIN32 AND NOT UNIX) |
|
39 |
set(CPACK_STRIP_FILES "bin/hedgewars;bin/hwengine") |
|
40 |
endif(WIN32 AND NOT UNIX) |
|
41 |
||
584
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
42 |
set(CPACK_SOURCE_IGNORE_FILES |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
43 |
"~" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
44 |
"\\\\.svn" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
45 |
"\\\\.exe$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
46 |
"\\\\.a$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
47 |
"\\\\.dll$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
48 |
"\\\\.xcf$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
49 |
"\\\\.cxx$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
50 |
"\\\\.db$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
51 |
"\\\\.cfg$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
52 |
"\\\\.dof$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
53 |
"\\\\.cmake$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
54 |
"\\\\.layout$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
55 |
"\\\\.zip$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
56 |
"\\\\.gz$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
57 |
"\\\\.bz2$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
58 |
"Makefile" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
59 |
"CMakeFiles" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
60 |
"debug" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
61 |
"release" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
62 |
"Debug$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
63 |
"Release$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
64 |
"proto.inc$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
65 |
"hwconsts.cpp$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
66 |
"playlist.inc$" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
67 |
"^${PROJECT_SOURCE_DIR}/bin/." |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
68 |
"^${PROJECT_SOURCE_DIR}/tools" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
69 |
"^${PROJECT_SOURCE_DIR}/docs" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
70 |
"^${PROJECT_SOURCE_DIR}/Graphics" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
71 |
"^${PROJECT_SOURCE_DIR}/realtest" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
72 |
"^${PROJECT_SOURCE_DIR}/tmp" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
73 |
"^${PROJECT_SOURCE_DIR}/utils" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
74 |
"^${PROJECT_SOURCE_DIR}/share/hedgewars/Data/Maps/test" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
75 |
"^${PROJECT_SOURCE_DIR}/share/hedgewars/Data/Themes/ethereal" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
76 |
"^${PROJECT_SOURCE_DIR}/install_manifest.txt" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
77 |
"^${PROJECT_SOURCE_DIR}/CMakeCache.txt" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
78 |
"^${PROJECT_SOURCE_DIR}/install_manifest.txt" |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
79 |
) |
f381705f1aeb
Some stuff to get good results from make 'package_source'
unc0rr
parents:
546
diff
changeset
|
80 |
|
184 | 81 |
include(CPack) |