I don’t know of anything for other generators. Those flags basically just tell Xcode to do things whereas other generators need CMake code to add the flags manually. Something like this is what I do:
It is split into two separate files that are included so that things like try_compile and such don’t inherit the sanitizer flags (which tend to cause false-negative detections of features due to poorly-coded detection snippets triggering the sanitizers).