From 64706a08ec4cdc07160e4bc3f0ece7874f663458 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 17 Jul 2019 11:52:26 +0300 Subject: [PATCH] Update README.cmake regarding Unix, C++ and tests Issue #105 (bdwgc). * doc/README.cmake: Mention that Unix targets are also supported; remove not that support is not yet complete; update the list of supported targets (that CMake is able to generate for); use Visual Studio 9 instead of Visual Studio 8 in the examples; document enable_cplusplus and build_tests options; provide an example with --config option; change "build" artifacts folder to "out" one in the example. --- doc/README.cmake | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/doc/README.cmake b/doc/README.cmake index 527ccda..297122d 100644 --- a/doc/README.cmake +++ b/doc/README.cmake @@ -2,27 +2,22 @@ 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 @@ -33,14 +28,18 @@ BUILD PROCESS . 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 -- 2.7.4