RPATH including external libraries
Added the following option to CMakeLists.txt:
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
which adds to the install RPATH directories for external libraries which are outside the build tree. With this option there is no need to specify LD_LIBRARY_PATH at runtime.