Added a few more details to README.cmake
authorJohn Tsiombikas <nuclear@member.fsf.org>
Tue, 13 Mar 2012 19:05:32 +0000 (19:05 +0000)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Tue, 13 Mar 2012 19:05:32 +0000 (19:05 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1126 7f0cb862-5218-0410-a997-914c9d46530a

README.cmake

index 51ab817..f776087 100644 (file)
@@ -1,4 +1,5 @@
-How to build freeglut with CMake:\r
+How to build freeglut with CMake on Windows (MS Visual Studio)\r
+--------------------------------------------------------------\r
 1.  Download CMake (http://www.cmake.org/cmake/resources/software.html).\r
     Get one of the releases from the binary distribution section.\r
 2.  Run the CMake installer, install wherever you like. \r
@@ -28,6 +29,26 @@ Open the freeglut.sln file that was generated in your build directory,
 and compile as usual\r
 \r
 \r
+How to build freeglut on UNIX\r
+-----------------------------\r
+1.  Make sure you have cmake installed. Examples:\r
+    - Debian/Ubuntu: apt-get install cmake\r
+    - Fedora: yum install cmake\r
+    - FreeBSD: cd /usr/ports/devel/cmake && make install\r
+    Or directly from their website:\r
+    http://www.cmake.org/cmake/resources/software.html\r
+2.  Run cmake . in the freeglut directory to generate the makefile.\r
+3.  Run make to build, and make install to install, freeglut.\r
+4.  If you wish to change any build options run ccmake .\r
 \r
-Breakdown of CMake configuration options:\r
-TODO\r
+\r
+Breakdown of CMake configuration options\r
+----------------------------------------\r
+BUILD_SHARED_LIBS       [ON, OFF] Build freeglut as a shared library\r
+BUILD_STATIC_LIBS       [ON, OFF] Build freeglut as a static library\r
+CMAKE_BUILD_TYPE        [Empty, Debug, Release] Can be overriden by passing it\r
+                        as a make variable during build.\r
+CMAKE_INSTALL_PREFIX   Installation prefix (e.g. /usr/local on UNIX)\r
+FREEGLUT_BUILD_DEMOS   [ON, OFF] Controls whether the demos are built or not.\r
+FREEGLUT_GLES1          [ON, OFF] TODO\r
+FREEGLUT_GLES2          [ON, OFF] TODO\r