I\'ve build the Google Test with CMake on Mac OS X and get two shared libraries: libgtest.dylib and libgtest_main.dylib. And now I need install both them.
Take a look at the default values for environment variables used by the dyld linker:
DYLD_FALLBACK_LIBRARY_PATH
...
By default, it is set to $(HOME)/lib:/usr/local/lib:/lib:/usr/lib
This article about "Deploying an Application on Mac OS X" and other article about "Mac OS X installers" may also help.