Skip to content

Commit

Permalink
Add //multibody/benchmarks/mass_damper_spring rollup library
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri committed May 10, 2018
1 parent 6781dbc commit 53c2a80
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
26 changes: 22 additions & 4 deletions multibody/benchmarks/mass_damper_spring/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
# -*- python -*-

load("//tools:drake.bzl", "drake_cc_googletest", "drake_cc_library")
load(
"@drake//tools/skylark:drake_cc.bzl",
"drake_cc_googletest",
"drake_cc_library",
"drake_cc_package_library",
)
load("//tools/lint:lint.bzl", "add_lint_tests")

package(default_visibility = ["//visibility:public"])
# Because there are no meaninfully distinct components in this package, the
# only public target we will offer is our drake_cc_package_library.
package(default_visibility = ["//visibility:private"])

drake_cc_package_library(
name = "mass_damper_spring",
deps = [
":mass_damper_spring_analytical_solution",
],
)

drake_cc_library(
name = "mass_damper_spring_analytical_solution",
srcs = ["mass_damper_spring_analytical_solution.cc"],
hdrs = ["mass_damper_spring_analytical_solution.h"],
srcs = [
"mass_damper_spring_analytical_solution.cc",
],
hdrs = [
"mass_damper_spring_analytical_solution.h",
],
deps = [
"//common:essential",
"//math:autodiff",
Expand Down
2 changes: 1 addition & 1 deletion tools/install/libdrake/build_components.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ LIBDRAKE_COMPONENTS = [
"//multibody/benchmarks/free_body:free_body",
"//multibody/benchmarks/inclined_plane:inclined_plane",
"//multibody/benchmarks/kuka_iiwa_robot:kuka_iiwa_robot",
"//multibody/benchmarks/mass_damper_spring:mass_damper_spring_analytical_solution", # noqa
"//multibody/benchmarks/mass_damper_spring:mass_damper_spring",
"//multibody/benchmarks/pendulum:pendulum",
"//multibody/collision:collision",
"//multibody/collision:collision_api",
Expand Down

0 comments on commit 53c2a80

Please sign in to comment.