author | koda |
Fri, 01 Mar 2013 00:06:05 +0100 | |
changeset 8613 | 82c649dfc7c3 |
parent 8317 | ec9f94ab2737 |
child 8330 | aaefa587e277 |
child 8649 | e3a9339ce1fd |
permissions | -rw-r--r-- |
184 | 1 |
add_subdirectory(hedgewars) |
2641 | 2 |
|
8317
ec9f94ab2737
remove the CROSSAPPLE option until a better solution is found
koda
parents:
8283
diff
changeset
|
3 |
if(APPLE) |
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) |
8283 | 14 |
set(FFMPEG_FIND_QUIETLY true) |
15 |
find_package(FFMPEG) |
|
8279
c03d64969112
less linking needed, raise minimum_osx_version when videorec is enabled
koda
parents:
8146
diff
changeset
|
16 |
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
|
17 |
set(minimum_macosx_version "10.6.3") |
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 |
endif() |
c03d64969112
less linking needed, raise minimum_osx_version when videorec is enabled
koda
parents:
8146
diff
changeset
|
20 |
|
8093
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
21 |
configure_file(${hedgewars_SOURCE_DIR}/share/Info.plist.in |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
22 |
${CMAKE_CURRENT_BINARY_DIR}/Info.plist) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
23 |
#path here should be Hedgewars.app/Contents/MacOS |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
24 |
install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/Info.plist" |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
25 |
DESTINATION ../) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
26 |
install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/Icon.icns" |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
27 |
DESTINATION ../Resources/) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
28 |
install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/hwico.icns" |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
29 |
DESTINATION ../Resources/) |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
30 |
install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/dsa_pub.pem" |
2286a39140da
moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents:
8090
diff
changeset
|
31 |
DESTINATION ../Resources/) |
8317
ec9f94ab2737
remove the CROSSAPPLE option until a better solution is found
koda
parents:
8283
diff
changeset
|
32 |
endif(APPLE) |