2016-07-31 20:44:31 +00:00
|
|
|
cc_library(
|
|
|
|
name = "gtest",
|
|
|
|
srcs = [
|
2018-05-05 00:30:16 +00:00
|
|
|
"googletest/src/gtest-all.cc",
|
|
|
|
"googlemock/src/gmock-all.cc",
|
2016-07-31 20:44:31 +00:00
|
|
|
],
|
|
|
|
hdrs = glob([
|
2018-05-05 00:30:16 +00:00
|
|
|
"**/*.h",
|
|
|
|
"googletest/src/*.cc",
|
|
|
|
"googlemock/src/*.cc",
|
2016-07-31 20:44:31 +00:00
|
|
|
]),
|
|
|
|
includes = [
|
2018-05-05 00:30:16 +00:00
|
|
|
"googlemock",
|
|
|
|
"googletest",
|
|
|
|
"googletest/include",
|
|
|
|
"googlemock/include",
|
2016-07-31 20:44:31 +00:00
|
|
|
],
|
|
|
|
linkopts = ["-pthread"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "gtest_main",
|
2018-05-05 00:30:16 +00:00
|
|
|
srcs = ["googlemock/src/gmock_main.cc"],
|
2016-07-31 20:44:31 +00:00
|
|
|
linkopts = ["-pthread"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [":gtest"],
|
|
|
|
)
|