share/CMakeLists.txt
author dag10 <gottlieb.drew@gmail.com>
Wed, 16 Jan 2013 18:34:43 -0500
changeset 8393 85bd6c7b2641
parent 8317 ec9f94ab2737
child 8330 aaefa587e277
child 8649 e3a9339ce1fd
permissions -rw-r--r--
Can now change theme for static and mission maps. Fixed mission map descriptions that had commas which broke them. Now, you must escape commas in map descriptions. Made bgwidget repaint on animation tick to avoid buffer-not-clearing issue with widgets that change overtop the background leaving a ghost image of the widget's previous state. Generated map is now the default map in the mapconfig widget.
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
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
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
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
af97cdbb7713 cmake verbosity/documentation/cleanup/formatting
koda
parents: 8279
diff changeset
    14
        set(FFMPEG_FIND_QUIETLY true)
af97cdbb7713 cmake verbosity/documentation/cleanup/formatting
koda
parents: 8279
diff changeset
    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)