added a quick tut for using cmake, adapted from http://mash-project.eu/wiki/index...
[freeglut] / README.cmake
1 How to build freeglut with CMake:\r
2 1.  Download CMake (http://www.cmake.org/cmake/resources/software.html).\r
3     Get one of the releases from the binary distribution section.\r
4 2.  Run the CMake installer, install wherever you like. \r
5 3.  Launch CMake via Start > Program Files > CMake 2.8 > CMake (GUI)\r
6     (note that the shortcut put by the installer on your desktop does NOT\r
7     point to the CMake GUI program!)\r
8 4.  In the "Where is the source code" box, type or browse to the root\r
9     directory of your freeglut source (so that's /freeglut, not\r
10     /freeglut/src).\r
11 5.  In the "Where to build the binaries" box, type or browse to any\r
12     folder you like - this will be where the Visual Studio solution will be\r
13     generated. This folder does not have to exist yet.\r
14 6.  Hit the Configure button near the bottom of the window. \r
15 7.  Pick your target compiler, make sure that its installed on your\r
16     system of course!\r
17 8.  Answer Ok when asked if you want to create the build directory. \r
18 9.  Wait for the configure process to finish. \r
19 10. The screen will now have some configuration options on it, for\r
20     instance specifying whether you want to build static and/or shared\r
21     libraries (see below for a complete list). When you've selected your\r
22     options, click the Configure button again.\r
23 11. The Generate button at the bottom will now be enabled. Click Generate.\r
24 12. The build files will now be generated in the location you picked. \r
25 \r
26 You can now navigate to the build directory you specified in step 5.\r
27 Open the freeglut.sln file that was generated in your build directory,\r
28 and compile as usual\r
29 \r
30 \r
31 \r
32 Breakdown of CMake configuration options:\r
33 TODO\r