184
+ − 1
add_subdirectory(hedgewars)
2641
+ − 2
1999
+ − 3
IF(APPLE)
4360
+ − 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 ../)
+ − 21
install(PROGRAMS "${hedgewars_SOURCE_DIR}/misc/Icon.icns"
+ − 22
DESTINATION ../Resources/)
2393
+ − 23
install(PROGRAMS "${hedgewars_SOURCE_DIR}/misc/dsa_pub.pem"
+ − 24
DESTINATION ../Resources/)
1999
+ − 25
ENDIF(APPLE)