README-cmake.txt 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. ================================================================================
  2. CMake build system for SDL (www.cmake.org)
  3. ================================================================================
  4. SDL's build system was traditionally based on autotools. Over time, this
  5. approach has suffered from several issues across the different supported
  6. platforms.
  7. To solve these problems, a new build system based on CMake is under development.
  8. It works in parallel to the legacy system, so users can experiment with it
  9. without complication.
  10. While still experimental, the build system should be usable on the following
  11. platforms:
  12. * FreeBSD
  13. * Linux
  14. * VS.NET 2010
  15. * MinGW and Msys
  16. * OS X with support for XCode
  17. ================================================================================
  18. Usage
  19. ================================================================================
  20. Assuming the source for SDL is located at ~/sdl
  21. cd ~
  22. mkdir build
  23. cd build
  24. cmake ../sdl
  25. This will build the static and dynamic versions of SDL in the ~/build directory.