-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathBUILD
More file actions
40 lines (35 loc) · 648 Bytes
/
Copy pathBUILD
File metadata and controls
40 lines (35 loc) · 648 Bytes
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
load("@buildifier_prebuilt//:rules.bzl", "buildifier")
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
buildifier(
name = "buildifier",
lint_mode = "warn",
mode = "check",
verbose = True,
)
cc_binary(
name = "main",
srcs = ["main.cpp"],
deps = [
":bar",
":foo",
],
)
cc_library(
name = "bar",
srcs = ["bar.cpp"],
hdrs = ["bar.h"],
)
cc_library(
name = "foo",
srcs = ["foo.cpp"],
hdrs = ["foo.h"],
)
cc_test(
name = "foo_test",
srcs = ["foo_test.cpp"],
deps = [
":foo",
"@catch2",
"@catch2//:catch2_main",
],
)