ixm-one / legacy

Make CMake less painful when trying to write Modern Flexible CMake (legacy)

Home Page:https://ixm.one

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add FindSDL2.cmake

bruxisma opened this issue · comments

SDL2 is a lovely library, but the default FindSDL2.cmake files that are out there leave a lot to be desired. There's no reason we can't provide a file to help people along the way. It should also provide support for finding the various SDL2 components, such as TTF, image, net, mixer, etc.

Progress has been made on this for the alpha release.

Small changes to find(LIBRARY) are needed, but will be handled soon.

We have this now, however, I'm also doing work with the current SDL2 CMake files to make the actual CMake building experience "not a nightmare". At some point, if we're lucky, we don't need the FindSDL2.cmake file!