-
Notifications
You must be signed in to change notification settings - Fork 10
/
BUILD
42 lines (36 loc) · 772 Bytes
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
package(default_visibility = ["//visibility:public"])
buildifier(
name = "buildifier",
lint_mode = "warn",
mode = "check",
verbose = True,
)
cc_binary(
name = "hello_world",
srcs = ["hello_world.cpp"],
deps = [":my_lib"],
)
cc_library(
name = "my_lib",
srcs = ["my_lib.cpp"],
hdrs = ["my_lib.h"],
)
cc_test(
name = "catch2_test",
srcs = ["catch2_test.cpp"],
deps = [
":my_lib",
"@catch2",
],
)
cc_test(
name = "gtest_test",
srcs = ["gtest_test.cpp"],
deps = [
":my_lib",
"@gtest",
"@gtest//:gtest_main",
],
)