user can deps nlohmann json using bazel directly

This commit is contained in:
horance 2019-05-23 06:45:40 +08:00
parent 295732a817
commit 4ab991c41b
2 changed files with 14 additions and 0 deletions

13
BUILD.bazel Normal file
View File

@ -0,0 +1,13 @@
licenses(["notice"]) # 3-Clause BSD
exports_files(["LICENSE.MIT"])
cc_library(
name = "json",
hdrs = glob([
"include/**/*.hpp",
]),
includes = ["include"],
visibility = ["//visibility:public"],
alwayslink = 1,
)

1
WORKSPACE Normal file
View File

@ -0,0 +1 @@
workspace(name = "nlohmann_json")