468663ddbb
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
51 lines
1.2 KiB
CMake
51 lines
1.2 KiB
CMake
|
|
CMAKE
|
|
-----
|
|
|
|
Win32 binaries (both 32- and 64-bit) can be built using CMake. CMake is an
|
|
open-source tool like automake - it generates makefiles.
|
|
|
|
Some preliminary work has been done to make this work on other platforms, but
|
|
the support is not yet complete.
|
|
|
|
CMake will generate:
|
|
|
|
Borland Makefiles
|
|
MSYS Makefiles
|
|
MinGW Makefiles
|
|
NMake Makefiles
|
|
Unix Makefiles
|
|
. Visual Studio project files
|
|
Visual Studio 6
|
|
Visual Studio 7
|
|
Visual Studio 7 .NET 2003
|
|
Visual Studio 8 2005
|
|
Visual Studio 8 2005 Win64
|
|
Visual Studio 9 2008
|
|
Visual Studio 9 2008 Win64
|
|
Watcom WMake
|
|
|
|
|
|
BUILD PROCESS
|
|
-------------
|
|
|
|
. install cmake (cmake.org)
|
|
. add directory containing cmake.exe to %PATH%
|
|
. run cmake from the gc root directory, passing the target with -G:
|
|
e.g.,
|
|
> cmake -G "Visual Studio 8 2005"
|
|
use the gc.sln file generated by cmake to build gc
|
|
. you can also run cmake from a build directory to build outside of
|
|
the source tree. Just specify the path to the source tree:
|
|
e.g.,
|
|
> mkdir build
|
|
> cd build
|
|
> cmake .. -G "Visual Studio 8 2005"
|
|
|
|
|
|
INPUT
|
|
-----
|
|
|
|
The main input to cmake are the CMakeLists.txt files in each directory. For
|
|
help, goto cmake.org.
|