Skip to content

Commit

Permalink
properly alias targets
Browse files Browse the repository at this point in the history
Signed-off-by: Teo Koon Peng <[email protected]>
  • Loading branch information
Teo Koon Peng committed Nov 12, 2021
1 parent 114c3cf commit 7e95d25
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmake/FindIgnURDFDOM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ ign_find_package(urdfdom ${find_version} QUIET)

if (urdfdom_FOUND)
add_library(IgnURDFDOM::IgnURDFDOM INTERFACE IMPORTED)
target_include_directories(IgnURDFDOM::IgnURDFDOM INTERFACE ${urdfdom_INCLUDE_DIRS})
target_link_libraries(IgnURDFDOM::IgnURDFDOM INTERFACE ${urdfdom_LIBRARIES})
target_link_libraries(IgnURDFDOM::IgnURDFDOM
INTERFACE
urdfdom::urdfdom_model
urdfdom::urdfdom_world
urdfdom::urdfdom_sensor
urdfdom::urdfdom_model_state
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(IgnURDFDOM DEFAULT_MSG)
else()
Expand Down

0 comments on commit 7e95d25

Please sign in to comment.