meson: Make googletest vendorable

This is a quality of life improvement so that users trying to work with
the project don't need to have an external install of the googletest
dependency for the tests to build.

Change-Id: I44b4cbae14c5006eaef0a5b42a1f6b753b07b405
Signed-off-by: William A. Kennington III <wak@google.com>
6 files changed
tree: 1c475227a0818c36b8f5ca35a9d11037a0a6cbed
  1. example/
  2. src/
  3. subprojects/
  4. test/
  5. .clang-format
  6. .clang-ignore
  7. .gitignore
  8. .lcovrc
  9. LICENSE
  10. MAINTAINERS
  11. meson.build
  12. meson_options.txt
  13. README.md
README.md

gpioplus

gpioplus is a c++ wrapper around the linux gpio ioctl interface. It aims to provide c++ ergonomics to the usage.

Building

For a standard release build, you want something like:

meson setup -Dexamples=false -Dtests=disabled builddir
ninja -C builddir
ninja -C builddir install

For a test / debug build, a typical configuration is

meson setup -Dtests=enabled builddir
meson test -C builddir