Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Setting runpath for locating dynamic libraries in the installation di…
…rectory

git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6686 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Feb 24, 2007
1 parent 6f14df8 commit b77b381
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/gui/CMakeLists.txt
Expand Up @@ -43,6 +43,22 @@ ELSE (WIN32)
ADD_EXECUTABLE(qgis ${QGIS_APP_SRCS})
ENDIF (WIN32)

# This sets runpath to the installation directory
SET_TARGET_PROPERTIES(qgis PROPERTIES
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
BUILD_WITH_INSTALL_RPATH true
)

# Uncomment this to set runpath to the directory path specified at compile time
#SET_TARGET_PROPERTIES(qgis PROPERTIES
# INSTALL_RPATH_USE_LINK_PATH true
#)

# Uncomment this to set runpath relative to executable
#SET_TARGET_PROPERTIES(qgis PROPERTIES
# LINK_FLAGS "-Wl,-rpath,'\$\$ORIGIN/../lib'"
#)

TARGET_LINK_LIBRARIES(qgis
${QT_LIBRARIES}
qgis_core
Expand Down

0 comments on commit b77b381

Please sign in to comment.