Skip to content

Commit

Permalink
cmake error fix
Browse files Browse the repository at this point in the history
Signed-off-by: Berkay <berkay@leodrive.ai>
  • Loading branch information
Berkay committed Apr 26, 2022
1 parent 9aed6e6 commit 0250717
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
25 changes: 15 additions & 10 deletions control/control_performance_analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ rosidl_generate_interfaces(
DEPENDENCIES builtin_interfaces std_msgs
)

ament_auto_add_library(control_performance_analysis_core SHARED
ament_auto_add_library(
control_performance_analysis_core SHARED
src/control_performance_analysis_utils.cpp
src/control_performance_analysis_core.cpp
)
)

ament_auto_add_library(control_performance_analysis_node SHARED
ament_auto_add_library(
control_performance_analysis_node SHARED
src/control_performance_analysis_node.cpp
)
)

if(${rosidl_cmake_VERSION} VERSION_LESS 2.5.0)
rosidl_target_interfaces(control_performance_analysis_node
Expand All @@ -55,21 +57,24 @@ else()

endif()

target_link_libraries(control_performance_analysis_node
target_link_libraries(
control_performance_analysis_node
control_performance_analysis_core
)
)

# workaround to allow deprecated header to build on both galactic and rolling
if(${tf2_geometry_msgs_VERSION} VERSION_LESS 0.18.0)
target_compile_definitions(control_performance_analysis_node PUBLIC
target_compile_definitions(
control_performance_analysis_node PUBLIC
USE_TF2_GEOMETRY_MSGS_DEPRECATED_HEADER
)
)
endif()

rclcpp_components_register_node(control_performance_analysis_node
rclcpp_components_register_node(
control_performance_analysis_node
PLUGIN "control_performance_analysis::ControlPerformanceAnalysisNode"
EXECUTABLE control_performance_analysis
)
)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
Expand Down
2 changes: 0 additions & 2 deletions control/control_performance_analysis/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@
<depend>tf2_ros</depend>
<depend>tier4_autoware_utils</depend>
<depend>vehicle_info_util</depend>

<build_depend>builtin_interfaces</build_depend>
<exec_depend>builtin_interfaces</exec_depend>
<exec_depend>global_parameter_loader</exec_depend>
<exec_depend>rosidl_default_runtime</exec_depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>autoware_lint_common</test_depend>

Expand Down

0 comments on commit 0250717

Please sign in to comment.