equal
deleted
inserted
replaced
1 add_subdirectory(hedgewars) |
1 add_subdirectory(hedgewars) |
2 |
2 |
3 IF(APPLE OR CROSSAPPLE) |
3 if(APPLE OR CROSSAPPLE) |
4 #needed for CFBundleVersion and CFBundleShortVersionString |
4 #needed for CFBundleVersion and CFBundleShortVersionString |
5 #should reuse the variables set in main CMakeLists.txt |
5 #should reuse the variables set in main CMakeLists.txt |
6 IF(HGCOMMAND AND (EXISTS ${CMAKE_SOURCE_DIR}/.hg)) |
6 if(HGCOMMAND AND (EXISTS ${CMAKE_SOURCE_DIR}/.hg)) |
7 set(HEDGEWARS_REVISION ${revision_number}) |
7 set(HEDGEWARS_REVISION ${revision_number}) |
8 ELSE() |
8 else() |
9 set(HEDGEWARS_REVISION ${HEDGEWARS_VERSION}) |
9 set(HEDGEWARS_REVISION ${HEDGEWARS_VERSION}) |
10 ENDIF() |
10 endif() |
11 |
11 |
12 configure_file(${hedgewars_SOURCE_DIR}/share/Info.plist.in |
12 configure_file(${hedgewars_SOURCE_DIR}/share/Info.plist.in |
13 ${CMAKE_CURRENT_BINARY_DIR}/Info.plist) |
13 ${CMAKE_CURRENT_BINARY_DIR}/Info.plist) |
14 #path here should be Hedgewars.app/Contents/MacOS |
14 #path here should be Hedgewars.app/Contents/MacOS |
15 install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/Info.plist" |
15 install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/Info.plist" |
18 DESTINATION ../Resources/) |
18 DESTINATION ../Resources/) |
19 install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/hwico.icns" |
19 install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/hwico.icns" |
20 DESTINATION ../Resources/) |
20 DESTINATION ../Resources/) |
21 install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/dsa_pub.pem" |
21 install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/dsa_pub.pem" |
22 DESTINATION ../Resources/) |
22 DESTINATION ../Resources/) |
23 ENDIF(APPLE OR CROSSAPPLE) |
23 endif(APPLE OR CROSSAPPLE) |