Use the BUILD_RPATH property and reference the CMake-computed location of the runtime libraries.
BUILD_RPATH