Xcode Framework

Would it be possible to add support for adding references to frameworks in the generated Xcode project? In the “General” → “Framework, Libraries, and Embedded content”. Especially I would like to be able to create a weak reference to a framework in case I am running my project on an Apple OS that does not have the framework available. Currently the only way to do this is to go in “Build Phases” → “Link Binary with Libraries” and set the framework as optional. It seems it cannot be done with CMake. Thanks.