set CMAKE_INSTALL_RPATH_USE_LINK_PATH to true