Skip to content

Instantly share code, notes, and snippets.

@njlr
Created January 3, 2017 14:39
Show Gist options
  • Save njlr/8ce85bf6f5e1959105194f37596472fd to your computer and use it in GitHub Desktop.
Save njlr/8ce85bf6f5e1959105194f37596472fd to your computer and use it in GitHub Desktop.
BUCK file for Google Test
cxx_library(
name = 'googletest',
header_namespace = '',
srcs = [
'googletest/src/gtest-all.cc',
'googletest/src/gtest_main.cc',
],
headers = subdir_glob([
('googletest', 'src/*.h'),
('googletest', 'src/*.cc'),
('googletest/include', '**/*.h'),
]),
deps = [
'//:c++'
],
exported_headers = subdir_glob([
('googletest/include', '**/*.h'),
]),
preprocessor_flags = [
'-U_STRICT_ANSI_',
],
compiler_flags = [
'-stdlib=libc++',
'-std=c++1z',
'-nostdinc++',
],
visibility = [
'PUBLIC',
],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment