Skip to content

Commit

Permalink
Hard-link to Mac embedded app bundle binary
Browse files Browse the repository at this point in the history
- 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 3ce27d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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
Expand Down

0 comments on commit 3ce27d6

Please sign in to comment.