[SDL] Building with cmake

E. Wing ewmailing at gmail.com
Sat Mar 3 15:35:39 PST 2007


My finger prints are all over the FindSDL module. What platform are
you on, what are the file name of your SDL library, and where on your
system are they located?

-Eric



On 3/3/07, Dan <dan.newmarch at gmail.com> wrote:
> I was wondering if anybody is successfully using cmake to build projects
> using
> sdl, I've been investigating it but am running into problems of limited
> documentation.  I'm trying to use it for a project that I've previously
> compiled
> under linux (Ubuntu 6.10) and windows xp, but I can't seem to get the cmake
> file
> to find sdl.  Here's what I'm using:
>
> PROJECT(DT)
> INCLUDE(FindSDL)
> INCLUDE(FindOpenGL)
>
> IF(SDL_FOUND)
> 	MESSAGE("SDL Found")
> 	INCLUDE_DIRECTORIES(SDL_INCLUDE_DIR)
> ELSE(SDL_FOUND)
> 	MESSAGE("SDL not found")
> ENDIF(SDL_FOUND)
>
> ADD_EXECUTABLE(dt DTpath.cpp DT.cpp)
>
> I haven't got as far as telling it to link against the opengl and sdl libs
> yet,
> becuase it says it can't find sdl.
> If anybody has any helpful suggestions regarding this issue I'd be grateful
> for
> the assistance.
> Regards,
> Dan
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>


More information about the SDL mailing list