generated from mosure/cpp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
46 lines (42 loc) · 769 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
43
44
45
46
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "catch2",
copts = [
"-std=c++11",
],
hdrs = [
"third_party/catch2/catch.hpp",
],
includes = [
"third_party",
],
visibility = ["//visibility:public"],
)
cc_library(
name = "cpp_template",
copts = [
"-std=c++17",
"-pedantic-errors",
"-Wall",
"-Wextra",
"-Wshadow",
],
hdrs = glob([
"include/**/*.hpp",
]),
includes = [
"include",
],
visibility = ["//visibility:public"]
)
cc_binary(
name = "test",
srcs = glob([
"test/**/*.cpp",
]),
deps = [
":catch2",
":cpp_template"
],
visibility = ["//visibility:public"]
)