author | koda |
Sun, 09 Dec 2012 16:00:06 +0100 | |
changeset 8279 | c03d64969112 |
parent 8146 | 1fba650c2aa4 |
child 8283 | af97cdbb7713 |
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 |
|
8279
c03d64969112
less linking needed, raise minimum_osx_version when videorec is enabled
koda
parents:
8146
diff
changeset
|
12 |
#silly libav that always brings in VideoDecoderAcceleration, avaible only from 10.6.3 |
c03d64969112
less linking needed, raise minimum_osx_version when videorec is enabled
koda
parents:
8146
diff
changeset
|
13 |
if(NOT NOVIDEOREC) |
c03d64969112
less linking needed, raise minimum_osx_version when videorec is enabled
koda
parents:
8146
diff
changeset
|
14 |
find_package(FFMPEG QUIET) |
c03d64969112
less linking needed, raise minimum_osx_version when videorec is enabled
koda
parents:
8146
diff
changeset
|
15 |
if(${FFMPEG_FOUND} AND ${minimum_macosx_version} VERSION_EQUAL "10.6") |
c03d64969112
less linking needed, raise minimum_osx_version when videorec is enabled
koda
parents:
8146
diff
changeset
|
16 |
set(minimum_macosx_version "10.6.3") |
c03d64969112
less linking needed, raise minimum_osx_version when videorec is enabled
koda
parents:
8146
diff
changeset
|
17 |
endif() |
c03d64969112
less linking needed, raise minimum_osx_version when videorec is enabled
koda
parents:
8146
diff
changeset
|
18 |
endif() |
c03d64969112
less linking needed, raise minimum_osx_version when videorec is enabled
koda
parents:
8146
diff
changeset
|
19 |
|
8093
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
20 |
configure_file(${hedgewars_SOURCE_DIR}/share/Info.plist.in |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
21 |
${CMAKE_CURRENT_BINARY_DIR}/Info.plist) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
22 |
#path here should be Hedgewars.app/Contents/MacOS |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
23 |
install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/Info.plist" |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
24 |
DESTINATION ../) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
25 |
install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/Icon.icns" |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
26 |
DESTINATION ../Resources/) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
27 |
install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/hwico.icns" |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
28 |
DESTINATION ../Resources/) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
29 |
install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/dsa_pub.pem" |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
30 |
DESTINATION ../Resources/) |
8146 | 31 |
endif(APPLE OR CROSSAPPLE) |