Lines Matching +full:cmake +full:- +full:windows
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.
12 * A compatible operating system (e.g. Linux, macOS, Windows).
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).
30 commands work on the Windows command line as well.
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
64 # For Windows: Prevent overriding the parent project's compiler/linker settings
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>