X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=README.cmake;h=9d4bfac5675f3bb6659e29a1f80d391a6717b89f;hb=4a451851ec51ea7c3b79534fa5faebadceedf4df;hp=51ab817e0d5fb6d3dcfbb2b3ffaa6588d6b2bc5b;hpb=4e946b7659667446ff0b30460a96c3b431750e76;p=freeglut diff --git a/README.cmake b/README.cmake index 51ab817..9d4bfac 100644 --- a/README.cmake +++ b/README.cmake @@ -1,4 +1,5 @@ -How to build freeglut with CMake: +How to build freeglut with CMake on Windows (MS Visual Studio) +-------------------------------------------------------------- 1. Download CMake (http://www.cmake.org/cmake/resources/software.html). Get one of the releases from the binary distribution section. 2. Run the CMake installer, install wherever you like. @@ -28,6 +29,27 @@ Open the freeglut.sln file that was generated in your build directory, and compile as usual +How to build freeglut on UNIX +----------------------------- +- Make sure you have cmake installed. Examples: + - Debian/Ubuntu: apt-get install cmake + - Fedora: yum install cmake + - FreeBSD: cd /usr/ports/devel/cmake && make install + Or directly from their website: + http://www.cmake.org/cmake/resources/software.html +- Install XInput: libxi-dev / libXi-devel +- Run 'cmake .' in the freeglut directory to generate the makefile. +- Run 'make' to build, and 'make install' to install freeglut. +- If you wish to change any build options run 'ccmake .' -Breakdown of CMake configuration options: -TODO + +Breakdown of CMake configuration options +---------------------------------------- +BUILD_SHARED_LIBS [ON, OFF] Build freeglut as a shared library +BUILD_STATIC_LIBS [ON, OFF] Build freeglut as a static library +CMAKE_BUILD_TYPE [Empty, Debug, Release] Can be overriden by passing it + as a make variable during build. +CMAKE_INSTALL_PREFIX Installation prefix (e.g. /usr/local on UNIX) +FREEGLUT_BUILD_DEMOS [ON, OFF] Controls whether the demos are built or not. +FREEGLUT_GLES1 [ON, OFF] TODO +FREEGLUT_GLES2 [ON, OFF] TODO