author | Grigory Ustinov <grenka@altlinux.org> |
Wed, 25 Sep 2019 21:03:59 +0300 | |
changeset 15439 | 36c263a6141d |
parent 15333 | 5b2dec63f4cf |
permissions | -rw-r--r-- |
8649 | 1 |
|
2 |
set(SHAREPATH ${HEDGEWARS_DATADIR}) |
|
3 |
||
4 |
add_subdirectory(hedgewars/Data) |
|
2641 | 5 |
|
8317
ec9f94ab2737
remove the CROSSAPPLE option until a better solution is found
koda
parents:
8283
diff
changeset
|
6 |
if(APPLE) |
8650 | 7 |
#CFBundleVersion is HEDGEWARS_REVISION |
8 |
#CFBundleShortVersionString is HEDGEWARS_VERSION |
|
4336 | 9 |
|
10068 | 10 |
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in |
8093
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
11 |
${CMAKE_CURRENT_BINARY_DIR}/Info.plist) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
12 |
#path here should be Hedgewars.app/Contents/MacOS |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
13 |
install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/Info.plist" |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
14 |
DESTINATION ../) |
10068 | 15 |
install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/Icon.icns" |
8093
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
16 |
DESTINATION ../Resources/) |
10068 | 17 |
install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/hwico.icns" |
8093
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
18 |
DESTINATION ../Resources/) |
10068 | 19 |
install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/dsa_pub.pem" |
8093
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
20 |
DESTINATION ../Resources/) |
10069 | 21 |
elseif(UNIX) |
22 |
install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/hedgewars.appdata.xml" |
|
23 |
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/appdata/) |
|
24 |
endif() |