Skip to content

Commit

Permalink
Export dependencies (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Martín Rico <fmrico@gmail.com>
  • Loading branch information
fmrico authored Feb 15, 2023
1 parent 9f0ac4b commit 0723117
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions scanmatcher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,21 @@ find_package(ndt_omp_ros2 REQUIRED)
find_package(PCL REQUIRED)
find_package(OpenMP)

set(dependencies
rclcpp
rclcpp_components
tf2_ros
tf2_geometry_msgs
tf2_sensor_msgs
tf2_eigen
pcl_conversions
geometry_msgs
sensor_msgs
nav_msgs
lidarslam_msgs
ndt_omp_ros2
)

if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
Expand All @@ -52,20 +67,7 @@ src/scanmatcher_component.cpp

target_compile_definitions(scanmatcher_component PRIVATE "GS_SM_BUILDING_DLL")

ament_target_dependencies(scanmatcher_component
rclcpp
rclcpp_components
tf2_ros
tf2_geometry_msgs
tf2_sensor_msgs
tf2_eigen
pcl_conversions
geometry_msgs
sensor_msgs
nav_msgs
lidarslam_msgs
ndt_omp_ros2
)
ament_target_dependencies(scanmatcher_component ${dependencies})

add_executable(scanmatcher_node
src/scanmatcher_node.cpp
Expand Down Expand Up @@ -114,4 +116,5 @@ install(TARGETS
)

ament_export_include_directories(include)
ament_export_dependencies(${dependencies})
ament_package()

0 comments on commit 0723117

Please sign in to comment.