Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Install mac bundle stuff
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6632 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
timlinux
committed
Feb 18, 2007
1 parent
a2c683a
commit 04630b7
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
SUBDIRS(Contents) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
############################################################# | ||
# create Info.plist | ||
|
||
ADD_CUSTOM_TARGET(Info.plist ALL | ||
VERSION=`grep VERSION ${CMAKE_BINARY_DIR}/qgsconfig.h | | ||
sed -e "s/#define VERSION //" | ||
-e "s/\\\"//g"` && | ||
SVNVERSION=`grep QGSSVNVERSION ${CMAKE_BINARY_DIR}/qgssvnversion.h | | ||
sed -e "s/#define QGSSVNVERSION //" | ||
-e "s/\\\"//g"` && | ||
sed -e "s/@VERSION/$$VERSION/" | ||
-e "s/@SHORTVERSION/$$VERSION/" | ||
-e "s/@SVNVERSION/$$SVNVERSION/" | ||
< ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in > Info.plist | ||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in | ||
${CMAKE_BINARY_DIR}/qgsconfig.h) | ||
|
||
ADD_DEPENDENCIES(Info.plist svnversion) | ||
|
||
############################################################# | ||
# process subdirs | ||
|
||
SUBDIRS(Resources) | ||
|
||
############################################################# | ||
# install | ||
|
||
INSTALL (FILES ${CMAKE_CURRENT_BINARY_DIR}/Info.plist | ||
${CMAKE_CURRENT_SOURCE_DIR}/PkgInfo | ||
DESTINATION ${CMAKE_INSTALL_PREFIX}/..) | ||
|
||
# Update bundle modification date so Finder scans latest plist | ||
INSTALL (CODE "EXECUTE_PROCESS(COMMAND touch ${CMAKE_INSTALL_PREFIX}/../../.)") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
APPLQGIS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
FILE (GLOB ICONS *.icns) | ||
INSTALL (FILES ${ICONS} | ||
DESTINATION ${CMAKE_INSTALL_PREFIX}/../Resources) |