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:
+Unix and Win32 binaries (both 32- and 64-bit) can be built using CMake.
+CMake is an open-source tool like automake - it generates makefiles.
+CMake v3.14.5 is able to 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
+ Visual Studio 16 2019
+ Visual Studio 15 2017
+ Visual Studio 14 2015
+ Visual Studio 12 2013
+ Visual Studio 11 2012
+ Visual Studio 10 2010
+ Visual Studio 9 2008
Watcom WMake
. 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"
+ > cmake -G "Visual Studio 9 2008" .
use the gc.sln file generated by cmake to build gc
+ . specify -Denable_cplusplus=ON option to build gccpp (GC C++ support)
+ . specify -Dbuild_tests=ON option to the tests (and run them by "ctest -V")
. 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"
+ > mkdir out
+ > cd out
+ > cmake -G "Visual Studio 9 2008" ..
+ > cmake --build . --config Release
+ > ctest --build-config Release -V
INPUT