Add bazel Support (#724)

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"],
)
This commit is contained in:
Ezekiel Warren
2019-09-27 08:11:38 -07:00
committed by Jesse Beder
parent 5e9cb0128d
commit 62ff351432
4 changed files with 39 additions and 0 deletions

14
BUILD.bazel Normal file
View File

@@ -0,0 +1,14 @@
cc_library(
name = "yaml-cpp_internal",
visibility = ["//:__subpackages__"],
strip_include_prefix = "src",
hdrs = glob(["src/**/*.h"]),
)
cc_library(
name = "yaml-cpp",
visibility = ["//visibility:public"],
strip_include_prefix = "include",
hdrs = glob(["include/**/*.h"]),
srcs = glob(["src/**/*.cpp", "src/**/*.h"]),
)