Skip to content
Permalink
Browse files

Hard-link to Mac embedded app bundle binary

- Allows QGIS to be run directly from build directory
- Link made at <build dir>/output/bin/QGIS
  • Loading branch information
dakcarto committed Oct 25, 2012
1 parent 9336e35 commit 3ce27d6ecc0fd8492f94df3a3df0d6b468ded136
Showing with 8 additions and 0 deletions.
  1. +8 −0 CMakeLists.txt
@@ -623,6 +623,14 @@ ENDIF (ENABLE_TESTS)
IF (APPLE)
# must be last for install, so install_name_tool can do its work
ADD_SUBDIRECTORY(mac)

# make hard link to embedded app bundle binary (symlink won't work)
# allows QGIS to be run directly from build directory
IF (EXISTS "${CMAKE_BINARY_DIR}/output/bin/QGIS.app/Contents/MacOS/QGIS")
EXECUTE_PROCESS(COMMAND /bin/ln -f
"${CMAKE_BINARY_DIR}/output/bin/QGIS.app/Contents/MacOS/QGIS"
"${CMAKE_BINARY_DIR}/output/bin/QGIS")
ENDIF ()
ENDIF (APPLE)

# manual page - makes sense only on unix systems

0 comments on commit 3ce27d6

Please sign in to comment.
You can’t perform that action at this time.