From 87a116c4d0d4287da06301579773a2a3f6da8da8 Mon Sep 17 00:00:00 2001 From: Leon Huang Date: Wed, 10 Apr 2019 18:00:10 -0400 Subject: [PATCH] doc: update the cmake testing instruction PR-URL: https://github.com/libuv/libuv/pull/2253 Reviewed-By: Ben Noordhuis --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4e92a817..11874cdb 100644 --- a/README.md +++ b/README.md @@ -172,11 +172,14 @@ $ make install To build with [CMake](https://cmake.org/): ```bash -$ mkdir -p out/cmake ; cd out/cmake ; cmake -DBUILD_TESTING=ON ../.. -$ make all test -# Or manually: -$ ./uv_run_tests # shared library build -$ ./uv_run_tests_a # static library build +$ mkdir -p out/cmake ; cd out/cmake # create build directory +$ cmake ../.. -DBUILD_TESTING=ON # generate project with test +$ cmake --build . # build +$ ctest -C Debug --output-on-failure # run tests + +# Or manually run tests: +$ ./out/cmake/uv_run_tests # shared library build +$ ./out/cmake/uv_run_tests_a # static library build ``` To build with GYP, first run: