support bazel complie this project and format code.
This commit is contained in:
16
basic_content/enum/BUILD
Normal file
16
basic_content/enum/BUILD
Normal file
@@ -0,0 +1,16 @@
|
||||
# please run `bazel run basic_content/enum:classic_practice`
|
||||
# please run `bazel run basic_content/enum:tradition_color`
|
||||
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
||||
|
||||
cc_binary(
|
||||
name = "classic_practice",
|
||||
srcs = ["classic_practice.cpp"],
|
||||
copts = ["-std=c++11"]
|
||||
)
|
||||
|
||||
# Don't panic if you get compilation errors, this is what this code demonstrates, as expected.
|
||||
cc_binary(
|
||||
name = "tradition_color",
|
||||
srcs = ["tradition_color.cpp"],
|
||||
copts = ["-std=c++11"]
|
||||
)
|
Reference in New Issue
Block a user