[CMake] FindSDL.cmake on windows

Christopher Harvey chris at basementcode.com
Wed Oct 29 12:34:02 EDT 2008


Hi list,
I just tried FindSDL today. Works great under linux, however under
windows it doesn't seem to do anything at all. My SDL library is
installed in a non-standard location (is there a standard location on
windows?)

Here is my CMakeLists.txt layout:

FIND_PACKAGE(SDL)
...
...
IF(SDL_FOUND)
  ADD_SUBDIRECTORY(exmapleApp)
ENDIF(SDL_FOUND)


So naturally under windows FIND_PACKAGE fails, no problem there.
I was surprised to see that  even if I filled out the SDL path
information in the GUI configuration program and ran configure again
that the project still remained excluded from the project. Is there a
way to let the user help find sdl, then configure so that the exampleApp
is included in the build?

Thanks,
Chris.


More information about the CMake mailing list