Skip to content

Commit

Permalink
Merge pull request #124 from remod/fix/propagate_apriltag_dep
Browse files Browse the repository at this point in the history
Fixed propagation of apriltag and Eigen headers and libraries.
  • Loading branch information
wxmerkt authored Apr 5, 2022
2 parents ba30598 + 287c1bd commit c47bdfc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apriltag_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,14 @@ generate_messages(
std_msgs
)

# Extract the include directories and libraries from apriltag::apriltag as catkin_package() does not support modern cmake.
get_target_property(apriltag_INCLUDE_DIRS apriltag::apriltag INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(apriltag_LIBRARIES apriltag::apriltag INTERFACE_LINK_LIBRARIES)

catkin_package(
INCLUDE_DIRS include
INCLUDE_DIRS
include
${EIGEN3_INCLUDE_DIRS}
CATKIN_DEPENDS
cv_bridge
geometry_msgs
Expand All @@ -79,6 +85,7 @@ catkin_package(
std_msgs
tf
DEPENDS
apriltag
OpenCV
LIBRARIES
${PROJECT_NAME}_common
Expand Down

0 comments on commit c47bdfc

Please sign in to comment.