cc_project_template_gn

A gn, ninja, and googletest-based C++ project template
git clone https://git.bracken.jp/cc_project_template_gn.git
Log | Files | Refs | Submodules | README | LICENSE

commit c4e7232b4be742b9e7288c5341e74835ae882044
parent 0b98ac27b160b4c973c9fe8b492b8bff1f1b9b2e
Author: Chris Bracken <chris@bracken.jp>
Date:   Thu, 10 Feb 2022 20:13:30 -0800

Build test target in default target

When generating the default target with gn, include tests as well. This
requires marking the default target testonly.

Diffstat:
MBUILD.gn | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/BUILD.gn b/BUILD.gn @@ -1,7 +1,9 @@ group("default") { + testonly = true deps = [ "//src:main", "//src:libfoo_shared", "//src:libfoo_static", + "//src:foo_tests", ] }