184
|
1 |
add_subdirectory(hedgewars)
|
2641
|
2 |
|
1999
|
3 |
IF(APPLE)
|
4336
|
4 |
#needed for CFBundleVersion and CFBundleShortVersionString
|
|
5 |
FIND_PROGRAM(HGCOMMAND hg)
|
|
6 |
IF (HGCOMMAND AND (EXISTS ${hedgewars_SOURCE_DIR}/.hg))
|
|
7 |
exec_program(${HGCOMMAND}
|
|
8 |
ARGS identify -n ${hedgewars_SOURCE_DIR}
|
|
9 |
OUTPUT_VARIABLE version_suffix
|
|
10 |
)
|
|
11 |
STRING(REGEX REPLACE "([0-9]+)(.*)" "\\1" version_suffix ${version_suffix})
|
|
12 |
set (HEDGEWARS_REVISION ${version_suffix})
|
|
13 |
ELSE ()
|
|
14 |
set (HEDGEWARS_REVISION ${HEDGEWARS_VERSION})
|
|
15 |
ENDIF ()
|
|
16 |
|
1999
|
17 |
configure_file(${hedgewars_SOURCE_DIR}/share/Info.plist.in
|
|
18 |
${CMAKE_CURRENT_BINARY_DIR}/Info.plist)
|
2015
|
19 |
install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/Info.plist"
|
|
20 |
DESTINATION ../)
|
5172
|
21 |
install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/Icon.icns"
|
2015
|
22 |
DESTINATION ../Resources/)
|
5252
|
23 |
install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/hwico.icns"
|
|
24 |
DESTINATION ../Resources/)
|
5172
|
25 |
install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/dsa_pub.pem"
|
2393
|
26 |
DESTINATION ../Resources/)
|
1999
|
27 |
ENDIF(APPLE)
|