share/CMakeLists.txt
author nemo
Wed, 29 Dec 2010 16:21:30 -0500
changeset 4780 8571151411b3
parent 4336 006133b13b32
child 5172 88f2e05288ba
permissions -rw-r--r--
add a couple of variables to speed up UID lookups. Based on the assumption new visual gears and gears will tend to be at the end of the list. Set them on successful lookup or script gear creation, clear on delete. Oh also pick up a couple of TrevInc's translation changes
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
1999
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents: 184
diff changeset
     3
IF(APPLE)
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))
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
     7
		exec_program(${HGCOMMAND}
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
     8
			     ARGS identify -n ${hedgewars_SOURCE_DIR}
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
     9
			     OUTPUT_VARIABLE version_suffix
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
    10
			     )
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
    11
		STRING(REGEX REPLACE "([0-9]+)(.*)" "\\1" version_suffix ${version_suffix})
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
    12
		set (HEDGEWARS_REVISION ${version_suffix})
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
    13
	ELSE ()
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
    14
		set (HEDGEWARS_REVISION ${HEDGEWARS_VERSION})
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
    15
	ENDIF ()
006133b13b32 update build files for compliance with Mac AppStore
koda
parents: 2641
diff changeset
    16
1999
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents: 184
diff changeset
    17
	configure_file(${hedgewars_SOURCE_DIR}/share/Info.plist.in 
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents: 184
diff changeset
    18
		${CMAKE_CURRENT_BINARY_DIR}/Info.plist)
2015
d2848d723690 koda's patch
unc0rr
parents: 1999
diff changeset
    19
	install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/Info.plist"
d2848d723690 koda's patch
unc0rr
parents: 1999
diff changeset
    20
		DESTINATION ../)
d2848d723690 koda's patch
unc0rr
parents: 1999
diff changeset
    21
	install(PROGRAMS "${hedgewars_SOURCE_DIR}/misc/Icon.icns"
d2848d723690 koda's patch
unc0rr
parents: 1999
diff changeset
    22
		DESTINATION ../Resources/)
2393
068632066f80 some fixes for the autoupdate thingy
koda
parents: 2015
diff changeset
    23
	install(PROGRAMS "${hedgewars_SOURCE_DIR}/misc/dsa_pub.pem"
068632066f80 some fixes for the autoupdate thingy
koda
parents: 2015
diff changeset
    24
		DESTINATION ../Resources/)
1999
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents: 184
diff changeset
    25
ENDIF(APPLE)