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