Use rpath so no more nasty LD_LIBRARY_PATH should be needed when installing to a non

standard dir


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7103 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2007-07-27 16:25:42 +00:00
parent e2f867a814
commit 66c7c5325d

View File

@ -155,6 +155,7 @@ ENDIF (PYTHON_FOUND)
QT4_WRAP_CPP(QGIS_APP_MOC_SRCS ${QGIS_APP_MOC_HDRS})
IF (WIN32 AND NOT MSVC)
# Icon for windows
@ -223,6 +224,11 @@ TARGET_LINK_LIBRARIES(qgis
qgis_gui
)
SET_TARGET_PROPERTIES(qgis PROPERTIES
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
INSTALL_RPATH_USE_LINK_PATH true
)
IF (PYTHON_FOUND)
TARGET_LINK_LIBRARIES(qgis ${PYTHON_LIBRARIES})
ENDIF (PYTHON_FOUND)