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