author | Mitchell Kember <mk12360@gmail.com> |
Tue, 04 Dec 2012 16:53:47 -0500 | |
changeset 8229 | 251f38da9935 |
parent 8146 | 1fba650c2aa4 |
child 8279 | c03d64969112 |
permissions | -rw-r--r-- |
184 | 1 |
add_subdirectory(hedgewars) |
2641 | 2 |
|
8146 | 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 |
8146 | 6 |
if(HGCOMMAND AND (EXISTS ${CMAKE_SOURCE_DIR}/.hg)) |
8093
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
7 |
set(HEDGEWARS_REVISION ${revision_number}) |
8146 | 8 |
else() |
8093
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
9 |
set(HEDGEWARS_REVISION ${HEDGEWARS_VERSION}) |
8146 | 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/) |
8146 | 23 |
endif(APPLE OR CROSSAPPLE) |