share/CMakeLists.txt
author unc0rr
Wed, 05 Dec 2012 23:55:22 +0400
branchflibqtfrontend
changeset 8233 d3966a555e5e
parent 8146 1fba650c2aa4
child 8279 c03d64969112
permissions -rw-r--r--
Show others if spectator is in game
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
8146
1fba650c2aa4 GCI2012: Lowercase CMake functions (main files only)
m4tx
parents: 8093
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
8146
1fba650c2aa4 GCI2012: Lowercase CMake functions (main files only)
m4tx
parents: 8093
diff changeset
     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
1fba650c2aa4 GCI2012: Lowercase CMake functions (main files only)
m4tx
parents: 8093
diff changeset
     8
    else()
8093
2286a39140da moar cmake cleanup, use message(WARNING ...) where appropriate
koda
parents: 8090
diff changeset
     9
        set(HEDGEWARS_REVISION ${HEDGEWARS_VERSION})
8146
1fba650c2aa4 GCI2012: Lowercase CMake functions (main files only)
m4tx
parents: 8093
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/)
8146
1fba650c2aa4 GCI2012: Lowercase CMake functions (main files only)
m4tx
parents: 8093
diff changeset
    23
endif(APPLE OR CROSSAPPLE)