184
|
1 |
add_subdirectory(hedgewars)
|
2641
|
2 |
|
7256
|
3 |
IF(APPLE OR CROSSAPPLE)
|
4336
|
4 |
#needed for CFBundleVersion and CFBundleShortVersionString
|
|
5 |
FIND_PROGRAM(HGCOMMAND hg)
|
8044
|
6 |
IF (HGCOMMAND AND (EXISTS ${CMAKE_SOURCE_DIR}/.hg))
|
4336
|
7 |
exec_program(${HGCOMMAND}
|
8044
|
8 |
ARGS identify -n ${CMAKE_SOURCE_DIR}
|
4336
|
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 |
|
8044
|
17 |
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in
|
1999
|
18 |
${CMAKE_CURRENT_BINARY_DIR}/Info.plist)
|
2015
|
19 |
install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/Info.plist"
|
|
20 |
DESTINATION ../)
|
8044
|
21 |
install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/Icon.icns"
|
2015
|
22 |
DESTINATION ../Resources/)
|
8044
|
23 |
install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/share/hwico.icns"
|
5252
|
24 |
DESTINATION ../Resources/)
|
8044
|
25 |
install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/share/dsa_pub.pem"
|
2393
|
26 |
DESTINATION ../Resources/)
|
7256
|
27 |
ENDIF(APPLE OR CROSSAPPLE)
|