From 66a036959f09071fa0d5f7af4a5cbf470a2c6137 Mon Sep 17 00:00:00 2001 From: misterg Date: Wed, 9 Aug 2017 14:37:58 -0400 Subject: WIP --- BUILD.bazel | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'BUILD.bazel') diff --git a/BUILD.bazel b/BUILD.bazel index 9c58f81e..1d2f6b87 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 -- cgit v1.2.3