Lines Matching +full:build +full:- +full:in
6 [Quickstart for Bazel](quickstart-bazel.md) instead.
14 * [CMake](https://cmake.org/) and a compatible build tool for building the
16 * Compatible build tools include
18 [Ninja](https://ninja-build.org/), and others - see
19 [CMake Generators](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html)
29 Note: The terminal commands in this tutorial show a Unix shell prompt, but the
34 CMake uses a file named `CMakeLists.txt` to configure the build system for a
45 GoogleTest. There are many ways to express dependencies in the CMake ecosystem;
46 in this quickstart, you'll use the
48 To do this, in your project directory (`my_project`), create a file named
70 from GitHub. In the above example, `03597a01ee50ed33e9dfd640b249b4be3799d395` is
82 As an example, create a file named `hello_test.cc` in your `my_project`
101 To build the code, add the following to the end of your `CMakeLists.txt` file:
119 The above configuration enables testing in CMake, declares the C++ test binary
120 you want to build (`hello_test`), and links it to GoogleTest (`gtest_main`). The
121 last two lines enable CMake's test runner to discover the tests included in the
123 [`GoogleTest` CMake module](https://cmake.org/cmake/help/git-stage/module/GoogleTest.html).
125 Now you can build and run your test:
128 <strong>my_project$ cmake -S . -B build</strong>
129 -- The C compiler identification is GNU 10.2.1
130 -- The CXX compiler identification is GNU 10.2.1
132 -- Build files have been written to: .../my_project/build
134 <strong>my_project$ cmake --build build</strong>
139 <strong>my_project$ cd build && ctest</strong>
140 Test project .../my_project/build