Skip to content

Commit

Permalink
Install mac bundle stuff
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mac/CMakeLists.txt
@@ -0,0 +1,2 @@

SUBDIRS(Contents)
34 changes: 34 additions & 0 deletions src/mac/Contents/CMakeLists.txt
@@ -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}/../../.)")
1 change: 1 addition & 0 deletions src/mac/Contents/PkgInfo
@@ -0,0 +1 @@
APPLQGIS
4 changes: 4 additions & 0 deletions src/mac/Contents/Resources/CMakeLists.txt
@@ -0,0 +1,4 @@

FILE (GLOB ICONS *.icns)
INSTALL (FILES ${ICONS}
DESTINATION ${CMAKE_INSTALL_PREFIX}/../Resources)

0 comments on commit 04630b7

Please sign in to comment.