This commit is contained in:
misterg 2017-08-01 14:50:59 -04:00
parent f63e2a14a2
commit b3edada290
2 changed files with 13 additions and 8 deletions

5
.gitignore vendored
View File

@ -3,3 +3,8 @@ build/
xcuserdata xcuserdata
cmake-build-debug/ cmake-build-debug/
.idea/ .idea/
bazel-bin
bazel-genfiles
bazel-googletest
bazel-out
bazel-testlogs

View File

@ -86,7 +86,7 @@ cc_library(
deps = [":gmock"], deps = [":gmock"],
) )
"""googletest own tests """ """gtest own tests """
#on windows exclude gtest-tuple.h and gtest-tuple_test.cc #on windows exclude gtest-tuple.h and gtest-tuple_test.cc
filegroup( filegroup(
@ -211,7 +211,7 @@ cc_test(
""" googletest samples""" """ googletest samples"""
cc_library( cc_library(
name = "googletest_sample_lib", name = "gtest_sample_lib",
srcs = [ srcs = [
"googletest/samples/sample1.cc", "googletest/samples/sample1.cc",
"googletest/samples/sample2.cc", "googletest/samples/sample2.cc",
@ -228,7 +228,7 @@ cc_library(
) )
cc_test( cc_test(
name = "googletest_samples", name = "gtest_samples",
size = "small", size = "small",
srcs = glob( srcs = glob(
include = [ include = [
@ -252,7 +252,7 @@ cc_test(
"googletest/samples", "googletest/samples",
], ],
deps = [ deps = [
":googletest_sample_lib", ":gtest_sample_lib",
":gtest_main", ":gtest_main",
], ],
) )
@ -260,7 +260,7 @@ cc_test(
""" googletest samples 9 and 10 have their own main()""" """ googletest samples 9 and 10 have their own main()"""
cc_test( cc_test(
name = "googletest_sample9", name = "gtest_sample9",
size = "small", size = "small",
srcs = glob( srcs = glob(
include = [ include = [
@ -271,12 +271,12 @@ cc_test(
"googletest/samples", "googletest/samples",
], ],
deps = [ deps = [
":gtest", ":gtest_main",
], ],
) )
cc_test( cc_test(
name = "googletest_sample10", name = "gtest_sample10",
size = "small", size = "small",
srcs = glob( srcs = glob(
include = [ include = [
@ -287,6 +287,6 @@ cc_test(
"googletest/samples", "googletest/samples",
], ],
deps = [ deps = [
":gtest", ":gtest_main",
], ],
) )