Skip to content

Commit

Permalink
Add eigen3 test targets to satisfy layering checks
Browse files Browse the repository at this point in the history
Signed-off-by: Shameek Ganguly <[email protected]>
  • Loading branch information
shameekganguly committed Nov 19, 2024
1 parent 38ecf69 commit 4669bf2
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions eigen3/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,6 @@ cc_library(
],
)

test_sources = glob(
[
"src/*_TEST.cc",
],
)

[cc_test(
name = src.replace("/", "_").replace(".cc", "").replace("src_", ""),
srcs = [src],
deps = [
":eigen3",
"@gtest",
"@gtest//:gtest_main",
],
) for src in test_sources]

cc_library(
name = "Conversions",
hdrs = ["include/gz/math/eigen3/Conversions.hh"],
Expand All @@ -61,6 +45,16 @@ cc_library(
],
)

cc_test(
name = "Conversions_TEST",
srcs = ["src/Conversions_TEST.cc"],
deps = [
":Conversions",
"@gtest",
"@gtest//:gtest_main",
],
)

cc_library(
name = "Util",
hdrs = ["include/gz/math/eigen3/Util.hh"],
Expand All @@ -76,3 +70,13 @@ cc_library(
"@eigen3",
],
)

cc_test(
name = "Util_TEST",
srcs = ["src/Util_TEST.cc"],
deps = [
":Util",
"@gtest",
"@gtest//:gtest_main",
],
)

0 comments on commit 4669bf2

Please sign in to comment.