1. Home
  2. Browse
  3. gtest

gtest

v1.15.2#0Latest

Google Testing and Mocking Framework

Install

Run the following Vcpkg command to install the port.

vcpkg install gtest

Usage

The package gtest is compatible with built-in CMake targets:

enable_testing()

find_package(GTest CONFIG REQUIRED)
target_link_libraries(main PRIVATE GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main)

add_test(AllTestsInMain main)

Dependencies

See source

Version

v1.15.2#0

Publication

Supports

All

GitHub

google/googletest

Homepage

github.com/google/googletest

Subtree

94f44ef0f9

License

BSD-3-Clause

Definition

Manifest