2015-06-18 23:45:27 +00:00
|
|
|
cc_library(
|
|
|
|
name = "gtest",
|
|
|
|
srcs = [
|
2016-09-09 16:45:37 +00:00
|
|
|
"googletest/src/gtest-all.cc",
|
|
|
|
"googlemock/src/gmock-all.cc",
|
2015-06-18 23:45:27 +00:00
|
|
|
],
|
2015-12-01 21:52:42 +00:00
|
|
|
hdrs = glob([
|
2016-09-09 16:45:37 +00:00
|
|
|
"**/*.h",
|
|
|
|
"googletest/src/*.cc",
|
|
|
|
"googlemock/src/*.cc",
|
2015-12-01 21:52:42 +00:00
|
|
|
]),
|
2015-06-18 23:45:27 +00:00
|
|
|
includes = [
|
2016-09-09 16:45:37 +00:00
|
|
|
"googlemock",
|
|
|
|
"googletest",
|
|
|
|
"googletest/include",
|
|
|
|
"googlemock/include",
|
2015-06-18 23:45:27 +00:00
|
|
|
],
|
|
|
|
linkopts = ["-pthread"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "gtest_main",
|
2016-09-09 16:45:37 +00:00
|
|
|
srcs = ["googlemock/src/gmock_main.cc"],
|
2015-06-18 23:45:27 +00:00
|
|
|
linkopts = ["-pthread"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [":gtest"],
|
|
|
|
)
|