• Home
  • Raw
  • Download

Lines Matching +full:cmake +full:- +full:version

1 # Quickstart: Building with CMake
3 This tutorial aims to get you up and running with GoogleTest using CMake. If
6 [Quickstart for Bazel](quickstart-bazel.md) instead.
14 * [CMake](https://cmake.org/) and a compatible build tool for building the
18 [Ninja](https://ninja-build.org/), and others - see
19 [CMake Generators](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html)
25 If you don't already have CMake installed, see the
26 [CMake installation guide](https://cmake.org/install).
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;
47 [`FetchContent` CMake module](https://cmake.org/cmake/help/latest/module/FetchContent.html).
51 ```cmake
52 cmake_minimum_required(VERSION 3.14)
71 the Git commit hash of the GoogleTest version to use; we recommend updating the
72 hash often to point to the latest version.
75 [CMake Tutorial](https://cmake.org/cmake/help/latest/guide/tutorial/index.html).
103 ```cmake
119 The above configuration enables testing in CMake, declares the C++ test binary
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).
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>