SDL2config.cmake on Mac?

I’m using SDL2 and its friends for cross-platform game development. On Windows I installed under MSYS2 using pacman. With each package it installed SDL2config.cmake, etc. find_package is working beautifully!

On Macintosh the approved installation seems to be to use Frameworks, which are provided on the official SDL2 site. And indeed, it will looks like I would want those anyway for building universal binaries. Right? Of course, sticking a Framework into /Library/Frameworks doesn’t install SDL2config.cmake anywhere. I have a FindSDL2.cmake that sort of halfway works, and the “friends” packages don’t even have those. Finding packages has been an ongoing problem, and just to get development done I have been driven to hard coding pathnames into CMakeLists.txt. But this is not portable!

How is this intended to work? Is there some script somewhere that would set things up nicely on the Mac? Would even work to copy those config files from Windows to some appropriate place on the Mac, or would I need different config files (as I suspect)?

Since you need to ship SDL2.framework in your macOS application bundle anyway, it’s easier to just put it in your source code repo and link to it (as a framework) from there. When building your application, Xcode will copy SDL2.framework to the necessary place in your app bundle and set it up to use that at runtime.

BTW, for new applications you should probably use SDL 3.