share/CMakeLists.txt
author jose1711
Sat, 24 Nov 2012 12:32:37 +0100
changeset 8121 0f6122422240
parent 8093 2286a39140da
child 8096 453917e94e55
child 8146 1fba650c2aa4
permissions -rw-r--r--
merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 98
diff changeset
     1
add_subdirectory(hedgewars)
2641
b08cafb86797 some tweaks in the mac compilation system
koda
parents: 2393
diff changeset
     2
7256
5b97b9946cde CROSSAPPLE ftw
koda
parents: 5252
diff changeset
     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
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
     6
    IF(HGCOMMAND AND (EXISTS ${CMAKE_SOURCE_DIR}/.hg))
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
     7
        set(HEDGEWARS_REVISION ${revision_number})
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
     8
    ELSE()
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
     9
        set(HEDGEWARS_REVISION ${HEDGEWARS_VERSION})
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
    10
    ENDIF()
4336
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
    11
8093
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
    12
    configure_file(${hedgewars_SOURCE_DIR}/share/Info.plist.in
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
    13
                   ${CMAKE_CURRENT_BINARY_DIR}/Info.plist)
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
    14
    #path here should be Hedgewars.app/Contents/MacOS
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
    15
    install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/Info.plist"
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
    16
            DESTINATION ../)
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
    17
    install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/Icon.icns"
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
    18
            DESTINATION ../Resources/)
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
    19
    install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/hwico.icns"
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
    20
            DESTINATION ../Resources/)
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
    21
    install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/dsa_pub.pem"
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
    22
            DESTINATION ../Resources/)
7256
5b97b9946cde CROSSAPPLE ftw
koda
parents: 5252
diff changeset
    23
ENDIF(APPLE OR CROSSAPPLE)