[CMake] Unified FindSDL module

Carles Pagès bonanit at gmail.com
Wed Dec 1 15:05:48 EST 2010


Hi all,

I needed to tweak the find sdl modules to use them to cross-compile
for the Wii, so I decided to rewrite them in a unified module (used
like: find_package (SDL REQUIRED ttf gfx image net)). I'm posting it
here in case anyone finds it useful. It's not very polished, but I
tried to keep all the cases of the original modules. It works for me
at least under Linux and Windows. It uses some helper macros of a
module from the cmake wiki which can be found here:
http://zi.fi/cmake/Modules/LibFindMacros.cmake

Hope it's useful
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindSDL.cmake
Type: application/octet-stream
Size: 3991 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101201/bdd578c1/attachment.obj>


More information about the CMake mailing list