.. _pkg_gtest:
Google Test (gtest)
-------------------
The Google C++ unit test library.
+------------------+------------------+
| System | Package |
+==================+==================+
| BSD Ports | devel/googletest |
+------------------+------------------+
| Debian/Ubuntu | libgtest-dev |
+------------------+------------------+
| Fedora | gtest-devel |
+------------------+------------------+
| Homebrew | N/A* |
+------------------+------------------+
| RedHat/CentOS | gtest-devel |
+------------------+------------------+
\*
`gtest is not available in homebrew `__
- `Website `__
- `Source download `__
- `Git tag `__
Local builds
^^^^^^^^^^^^
If using a local build of gtest, make sure that :envvar:`GTEST_ROOT`
is set in the environment, or that ``-DGTEST_ROOT=/path/to/gtest`` is
passed to :program:`cmake` and that this points to the location where
the :program:`gtest` library was installed. If the library is located
on the default library search path, this is not necessary.