]> granicus.if.org Git - gc/commitdiff
Update README.cmake regarding Unix, C++ and tests
authorIvan Maidanski <ivmai@mail.ru>
Wed, 17 Jul 2019 08:52:26 +0000 (11:52 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 17 Jul 2019 08:53:16 +0000 (11:53 +0300)
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

index 527ccda878cef3affccdf236c57f9408f26b41da..297122de1e231806c55fba1899737baae2284cf9 100644 (file)
@@ -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