Library "not found" after building test with CMake on Ubuntu.

RUNPATH is not inherited across the loaded library chain, so each library in a non-standard place would need the -rpath flag for $ORIGIN. You’ll have to update the builds of those projects to set the proper flags.