Skip to content

Instantly share code, notes, and snippets.

@njlr
Last active May 9, 2017 10:08
Show Gist options
  • Save njlr/3e3cc19d2aa6e39817000cc553071c20 to your computer and use it in GitHub Desktop.
Save njlr/3e3cc19d2aa6e39817000cc553071c20 to your computer and use it in GitHub Desktop.
cxx_library(
name = 'my-library',
exported_headers = subdir_glob([
('include', '**/*.hpp'),
]),
srcs = glob([
'src/**/*.cpp',
]),
)
cxx_binary(
name = 'my-app',
srcs = [
'main.cpp',
],
deps = [
':my-library',
],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment