I can't figure out how to add libraries into "Link binary With Libraries" Xcode project section with cmake. If I do something like target_link_libraries(MyProject zlib.dylib) it doesn't make sense on Xcode project when I run cmake -GXcode .. as result I have unresolved external symbols but if I add my libraries manually to my target like: Build Phases -> "+" -> "New Link Binary With Libraries Phase" In this case I have no linker errors.
macOS 10.14.6, cmake --version output: cmake version 3.15.2