Once it’s set in CMake, then all future generated project files will have that setting, so you won’t need to set it manually.
That’s an interesting one, and I’m not sure how best to address it. Is it possible to create a script that runs and inserts the relevant fields in the CMake-generated xcode project? I haven’t yet moved to the macOS/iOS build of my application, so haven’t had to face these issues yet, but it looks like I’ll have to start thinking about this now.