Example of how someone might consume yaml-cpp with bazel:
cc_binary(
name = "example",
srcs = ["example.cc"],
deps = ["@com_github_jbeder_yaml_cpp//:yaml-cpp"],
)
15 lines
262 B
Python
15 lines
262 B
Python
cc_test(
|
|
name = "test",
|
|
srcs = glob([
|
|
"*.cpp",
|
|
"*.h",
|
|
"integrations/*.cpp",
|
|
"node/*.cpp",
|
|
]),
|
|
deps = [
|
|
"//:yaml-cpp",
|
|
"//:yaml-cpp_internal",
|
|
"@com_google_googletest//:gtest_main",
|
|
],
|
|
)
|