aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/gtest.BUILD
blob: f38bfd8d4574b199c9d2b8f818187f23bbab8169 (plain)
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
cc_library(
    name = "gtest",
    srcs = [
        "googletest/src/gtest-all.cc",
    ],
    hdrs = glob([
        "googletest/include/**/*.h",
        "googletest/src/*.cc",
        "googletest/src/*.h",
    ]),
    includes = [
        "googletest",
        "googletest/include",
    ],
    linkstatic = 1,
    visibility = [
        "//visibility:public",
    ],
)

cc_library(
    name = "gmock",
    srcs = [
        "googlemock/src/gmock-all.cc"
    ],
    hdrs = glob([
        "googlemock/include/**/*.h",
        "googlemock/src/*.cc",
        "googlemock/src/*.h"
    ]),
    includes = [
        "googlemock",
        "googlemock/include",
    ],
    deps = [
        ":gtest",
    ],
    linkstatic = 1,
    visibility = [
        "//visibility:public",
    ],
)