What are the default search directories to link a library on Mac OS X
问题 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. I know there are some default search directories on Linux, such as /usr/lib , /usr/local/lib , etc.. But I am unfamiliar with Mac OS X and don't know where to place those libraries. In Mac OS X Directory Structure, I find there are three directories of libraries: ~/Library , /Library and /usr/lib . And I've tried to place gtest libraries