SDL, cmake and Visual C++?

Hi!
Does anyone have a tutorial on how to setup SDL with cmake on a Visual
C/Studio system - I am using Visual C++ 2010 Express, and my own
cmake-based project, and I would like to make it work using Visual C
too. I have got it working on Linux, and also using MSYS/MinGW on
windows, but I am having a hard time setting it up with Visual C++.

Regarding SDL I am using SDL, SDL_ttf and SDL_Image, and would like to
have them setup so that cmake can find the MSVC versions of the
libraries.

Any tutorial / hints out there you can recommend?–
Andreas Ronnquist <@Andreas_Ronnquist>

I have a screencast on YouTube which can be found here (which
CMake.org recently started pointing to):
http://playcontrol.net/ewing/screencasts/getting_started_with_cmake_.html

It doesn’t get into code, nor SDL, but does focus on cross-platform
design considerations with CMake. Most of the Visual Studio issues are
dealing with the lack of predesignated paths on Windows which I give a
few tips on.

-EricOn 8/5/10, Andreas Ronnquist wrote:

Hi!
Does anyone have a tutorial on how to setup SDL with cmake on a Visual
C/Studio system - I am using Visual C++ 2010 Express, and my own
cmake-based project, and I would like to make it work using Visual C
too. I have got it working on Linux, and also using MSYS/MinGW on
windows, but I am having a hard time setting it up with Visual C++.

Regarding SDL I am using SDL, SDL_ttf and SDL_Image, and would like to
have them setup so that cmake can find the MSVC versions of the
libraries.

Any tutorial / hints out there you can recommend?


Andreas Ronnquist


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I have a screencast on YouTube which can be found here (which
CMake.org recently started pointing to):
http://playcontrol.net/ewing/screencasts/getting_started_with_cmake_.html

It doesn’t get into code, nor SDL, but does focus on cross-platform
design considerations with CMake. Most of the Visual Studio issues are
dealing with the lack of predesignated paths on Windows which I give a
few tips on.

-Eric

Thanks! That was very helpful - Got my project compiling on MSVC now,
only some minor stuff of the boost library that doesn’t quite do as I
want, but I think I will have to run that by the boost guys.

best regardsOn Thu, 5 Aug 2010 12:19:41 -0700 Eric Wing wrote:

Andreas Ronnquist <@Andreas_Ronnquist>