1. Home
  2. Browse
  3. gtest

gtest

v2021-05-07#0Go to latest

GoogleTest and GoogleMock testing frameworks

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)
See source

Version

v2021-05-07#0

Publication

Supports

All

GitHub

google/googletest

Homepage

github.com/google/googletest

Subtree

822c2dde6a

License

Complex license

Definition

Manifest