File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ endif()
19
19
SET (CMAKE_CXX_FLAGS "-O2 -g ${CMAKE_CXX_FLAGS} " )
20
20
add_compile_definitions (G2O_USE_VENDORED_CERES )
21
21
22
+ # Find missing symbols during link time
23
+ add_link_options (-Wl,--no-undefined )
24
+
22
25
# find dependencies
23
26
find_package (ament_cmake REQUIRED )
24
27
find_package (rclcpp REQUIRED )
@@ -75,16 +78,18 @@ ament_target_dependencies(graph_based_slam_component
75
78
ndt_omp_ros2
76
79
)
77
80
81
+ target_link_libraries (graph_based_slam_component
82
+ g2o::core
83
+ g2o::types_slam3d
84
+ g2o::solver_eigen
85
+ )
86
+
78
87
add_executable (graph_based_slam_node
79
88
src/graph_based_slam_node.cpp
80
89
)
81
90
82
91
target_link_libraries (graph_based_slam_node
83
- graph_based_slam_component
84
- ${PCL_LIBRARIES}
85
- g2o::core
86
- g2o::types_slam3d
87
- g2o::solver_eigen
92
+ graph_based_slam_component
88
93
)
89
94
90
95
ament_target_dependencies (graph_based_slam_node
You can’t perform that action at this time.
0 commit comments