author | koda |
Thu, 22 Nov 2012 00:41:53 +0100 | |
branch | webgl |
changeset 8096 | 453917e94e55 |
parent 8053 | 2e836bebb518 |
parent 8093 | 2286a39140da |
child 8330 | aaefa587e277 |
permissions | -rw-r--r-- |
184 | 1 |
add_subdirectory(hedgewars) |
2641 | 2 |
|
7256 | 3 |
IF(APPLE OR CROSSAPPLE) |
8093
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
4 |
#needed for CFBundleVersion and CFBundleShortVersionString |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
5 |
#should reuse the variables set in main CMakeLists.txt |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
6 |
IF(HGCOMMAND AND (EXISTS ${CMAKE_SOURCE_DIR}/.hg)) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
7 |
set(HEDGEWARS_REVISION ${revision_number}) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
8 |
ELSE() |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
9 |
set(HEDGEWARS_REVISION ${HEDGEWARS_VERSION}) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
10 |
ENDIF() |
4336 | 11 |
|
8093
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
12 |
configure_file(${hedgewars_SOURCE_DIR}/share/Info.plist.in |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
13 |
${CMAKE_CURRENT_BINARY_DIR}/Info.plist) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
14 |
#path here should be Hedgewars.app/Contents/MacOS |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
15 |
install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/Info.plist" |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
16 |
DESTINATION ../) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
17 |
install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/Icon.icns" |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
18 |
DESTINATION ../Resources/) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
19 |
install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/hwico.icns" |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
20 |
DESTINATION ../Resources/) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
21 |
install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/dsa_pub.pem" |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
22 |
DESTINATION ../Resources/) |
7256 | 23 |
ENDIF(APPLE OR CROSSAPPLE) |