diff options
author | misterg <misterg@google.com> | 2017-08-09 18:37:58 (GMT) |
---|---|---|
committer | misterg <misterg@google.com> | 2017-08-09 18:37:58 (GMT) |
commit | 66a036959f09071fa0d5f7af4a5cbf470a2c6137 (patch) | |
tree | e80abe19f50106f73325ee404f1581091bc0fd4c /BUILD.bazel | |
parent | 5a5e3c17bbec88eb48ba92e0ad325ceaa45a81aa (diff) | |
download | googletest-66a036959f09071fa0d5f7af4a5cbf470a2c6137.zip googletest-66a036959f09071fa0d5f7af4a5cbf470a2c6137.tar.gz googletest-66a036959f09071fa0d5f7af4a5cbf470a2c6137.tar.bz2 |
Diffstat (limited to 'BUILD.bazel')
-rw-r--r-- | BUILD.bazel | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/BUILD.bazel b/BUILD.bazel index 9c58f81..1d2f6b8 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -8,19 +8,12 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -# gtest public API. -GTEST_HDRS = \ - glob([ - "googletest/include/gtest/*.h", - "googlemock/include/gmock/*.h", - ]) - config_setting( name = "win", values = {"cpu": "x64_windows_msvc"}, ) -# Google Test +# Google Test including Google Mock cc_library( name = "gtest", srcs = glob( @@ -35,9 +28,13 @@ cc_library( "googletest/src/gtest-all.cc", "googletest/src/gtest_main.cc", "googlemock/src/gmock-all.cc", + "googlemock/src/gmock_main.cc", ], ), - hdrs = GTEST_HDRS, + hdrs =glob([ + "googletest/include/gtest/*.h", + "googlemock/include/gmock/*.h", + ]), copts = select( { ":win": [], @@ -123,4 +120,4 @@ cc_test( deps = [ ":gtest", ], -) +)
\ No newline at end of file |