share/CMakeLists.txt
author koda
Wed, 21 Nov 2012 18:34:45 +0100
changeset 8090 38d9cc60b14c
parent 7256 5b97b9946cde
child 8093 2286a39140da
permissions -rw-r--r--
cleanup revision section, make hg launch tolerant to config errors, drop deprecated exec_prog for desktop configuration in favour of execute_process
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)
4336
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
     4
	#needed for CFBundleVersion and CFBundleShortVersionString
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
     5
	FIND_PROGRAM(HGCOMMAND hg)
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
     6
	IF (HGCOMMAND AND (EXISTS ${hedgewars_SOURCE_DIR}/.hg))
8090
38d9cc60b14c cleanup revision section, make hg launch tolerant to config errors, drop deprecated exec_prog for desktop configuration in favour of execute_process
koda
parents: 7256
diff changeset
     7
            execute_process(COMMAND ${HGCOMMAND} identify -in
38d9cc60b14c cleanup revision section, make hg launch tolerant to config errors, drop deprecated exec_prog for desktop configuration in favour of execute_process
koda
parents: 7256
diff changeset
     8
                            WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
38d9cc60b14c cleanup revision section, make hg launch tolerant to config errors, drop deprecated exec_prog for desktop configuration in favour of execute_process
koda
parents: 7256
diff changeset
     9
                            OUTPUT_VARIABLE internal_version
38d9cc60b14c cleanup revision section, make hg launch tolerant to config errors, drop deprecated exec_prog for desktop configuration in favour of execute_process
koda
parents: 7256
diff changeset
    10
                            ERROR_QUIET
38d9cc60b14c cleanup revision section, make hg launch tolerant to config errors, drop deprecated exec_prog for desktop configuration in favour of execute_process
koda
parents: 7256
diff changeset
    11
                        )
38d9cc60b14c cleanup revision section, make hg launch tolerant to config errors, drop deprecated exec_prog for desktop configuration in favour of execute_process
koda
parents: 7256
diff changeset
    12
		STRING(REGEX REPLACE "([0-9]+)(.*)" "\\1" revision_number ${internal_version})
38d9cc60b14c cleanup revision section, make hg launch tolerant to config errors, drop deprecated exec_prog for desktop configuration in favour of execute_process
koda
parents: 7256
diff changeset
    13
		set (HEDGEWARS_REVISION ${revision_number})
4336
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
    14
	ELSE ()
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
    15
		set (HEDGEWARS_REVISION ${HEDGEWARS_VERSION})
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
    16
	ENDIF ()
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
    17
1999
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents: 184
diff changeset
    18
	configure_file(${hedgewars_SOURCE_DIR}/share/Info.plist.in 
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents: 184
diff changeset
    19
		${CMAKE_CURRENT_BINARY_DIR}/Info.plist)
2015
d2848d723690 koda's patch
unc0rr
parents: 1999
diff changeset
    20
	install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/Info.plist"
d2848d723690 koda's patch
unc0rr
parents: 1999
diff changeset
    21
		DESTINATION ../)
5172
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents: 4336
diff changeset
    22
	install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/Icon.icns"
2015
d2848d723690 koda's patch
unc0rr
parents: 1999
diff changeset
    23
		DESTINATION ../Resources/)
5252
ded882439548 file association for mac!
koda
parents: 5172
diff changeset
    24
	install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/hwico.icns"
ded882439548 file association for mac!
koda
parents: 5172
diff changeset
    25
		DESTINATION ../Resources/)
5172
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents: 4336
diff changeset
    26
	install(PROGRAMS "${hedgewars_SOURCE_DIR}/share/dsa_pub.pem"
2393
068632066f80 some fixes for the autoupdate thingy
koda
parents: 2015
diff changeset
    27
		DESTINATION ../Resources/)
7256
5b97b9946cde CROSSAPPLE ftw
koda
parents: 5252
diff changeset
    28
ENDIF(APPLE OR CROSSAPPLE)