equal
deleted
inserted
replaced
1 add_subdirectory(hedgewars) |
1 |
|
2 set(SHAREPATH ${HEDGEWARS_DATADIR}) |
|
3 |
|
4 add_subdirectory(hedgewars/Data) |
2 |
5 |
3 if(APPLE) |
6 if(APPLE) |
4 #needed for CFBundleVersion and CFBundleShortVersionString |
7 #CFBundleVersion is HEDGEWARS_REVISION |
5 #should reuse the variables set in main CMakeLists.txt |
8 #CFBundleShortVersionString is HEDGEWARS_VERSION |
6 if(HGCOMMAND AND (EXISTS ${CMAKE_SOURCE_DIR}/.hg)) |
|
7 set(HEDGEWARS_REVISION ${revision_number}) |
|
8 else() |
|
9 set(HEDGEWARS_REVISION ${HEDGEWARS_VERSION}) |
|
10 endif() |
|
11 |
9 |
12 #silly libav that always brings in VideoDecoderAcceleration, avaible only from 10.6.3 |
10 #libav/ffmpeg always brings in VideoDecoderAcceleration, avaible only from 10.6.3 |
13 if(NOT NOVIDEOREC) |
11 if(${FFMPEG_FOUND} AND ${minimum_macosx_version} VERSION_EQUAL "10.6") |
14 set(FFMPEG_FIND_QUIETLY true) |
12 set(minimum_macosx_version "10.6.3") |
15 find_package(FFMPEG) |
|
16 if(${FFMPEG_FOUND} AND ${minimum_macosx_version} VERSION_EQUAL "10.6") |
|
17 set(minimum_macosx_version "10.6.3") |
|
18 endif() |
|
19 endif() |
13 endif() |
20 |
14 |
21 configure_file(${hedgewars_SOURCE_DIR}/share/Info.plist.in |
15 configure_file(${hedgewars_SOURCE_DIR}/share/Info.plist.in |
22 ${CMAKE_CURRENT_BINARY_DIR}/Info.plist) |
16 ${CMAKE_CURRENT_BINARY_DIR}/Info.plist) |
23 #path here should be Hedgewars.app/Contents/MacOS |
17 #path here should be Hedgewars.app/Contents/MacOS |