support bazel complie this project and format code.
This commit is contained in:
15
basic_content/friend/BUILD
Normal file
15
basic_content/friend/BUILD
Normal file
@@ -0,0 +1,15 @@
|
||||
# please run `bazel run basic_content/friend:friend_class`
|
||||
# please run `bazel run basic_content/friend:friend_func`
|
||||
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
||||
|
||||
cc_binary(
|
||||
name = "friend_class",
|
||||
srcs = ["friend_class.cpp"],
|
||||
copts = ["-std=c++11"]
|
||||
)
|
||||
|
||||
cc_binary(
|
||||
name = "friend_func",
|
||||
srcs = ["friend_func.cpp"],
|
||||
copts = ["-std=c++11"]
|
||||
)
|
Reference in New Issue
Block a user