| 1 |
|
| 2 |
CMAKE |
| 3 |
----- |
| 4 |
|
| 5 |
Win32 binaries (both 32- and 64-bit) can be built using CMake. CMake is an |
| 6 |
open-source tool like automake - it generates makefiles. |
| 7 |
|
| 8 |
Some preliminary work has been done to make this work on other platforms, but |
| 9 |
the support is not yet complete. |
| 10 |
|
| 11 |
CMake will generate: |
| 12 |
|
| 13 |
Borland Makefiles |
| 14 |
MSYS Makefiles |
| 15 |
MinGW Makefiles |
| 16 |
NMake Makefiles |
| 17 |
Unix Makefiles |
| 18 |
. Visual Studio project files |
| 19 |
Visual Studio 6 |
| 20 |
Visual Studio 7 |
| 21 |
Visual Studio 7 .NET 2003 |
| 22 |
Visual Studio 8 2005 |
| 23 |
Visual Studio 8 2005 Win64 |
| 24 |
Visual Studio 9 2008 |
| 25 |
Visual Studio 9 2008 Win64 |
| 26 |
Watcom WMake |
| 27 |
|
| 28 |
|
| 29 |
BUILD PROCESS |
| 30 |
------------- |
| 31 |
|
| 32 |
. install cmake (cmake.org) |
| 33 |
. add directory containing cmake.exe to %PATH% |
| 34 |
. run cmake from the gc root directory, passing the target with -G: |
| 35 |
e.g., |
| 36 |
> cmake -G "Visual Studio 8 2005" |
| 37 |
use the gc.sln file generated by cmake to build gc |
| 38 |
. you can also run cmake from a build directory to build outside of |
| 39 |
the source tree. Just specify the path to the source tree: |
| 40 |
e.g., |
| 41 |
> mkdir build |
| 42 |
> cd build |
| 43 |
> cmake .. -G "Visual Studio 8 2005" |
| 44 |
|
| 45 |
|
| 46 |
INPUT |
| 47 |
----- |
| 48 |
|
| 49 |
The main input to cmake are the CMakeLists.txt files in each directory. For |
| 50 |
help, goto cmake.org. |