This commit is contained in:
2026-07-21 14:56:02 +07:00
parent 1cf62c0856
commit 5570c30deb
4 changed files with 398 additions and 7 deletions

View File

@@ -27,6 +27,7 @@ if (NOT BUILDING_WITH_CATKIN)
set(PACKAGES_DIR
robot_geometry_msgs
robot_sensor_msgs
)
else()
@@ -34,14 +35,21 @@ else()
# ========================================================
# Catkin specific configuration
# ========================================================
find_package(PCL REQUIRED)
find_package(catkin REQUIRED COMPONENTS
robot_geometry_msgs
robot_sensor_msgs
)
catkin_package(
INCLUDE_DIRS include
# LIBRARIES không cần vì đây là header-only library
CATKIN_DEPENDS robot_geometry_msgs
CATKIN_DEPENDS
robot_geometry_msgs
robot_sensor_msgs
DEPENDS
PCL
)
include_directories(
@@ -64,12 +72,14 @@ if(BUILDING_WITH_CATKIN)
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
${PCL_INCLUDE_DIRS}
)
# Link dependencies (header-only, chỉ cần include paths)
target_link_libraries(${PROJECT_NAME}
INTERFACE
${catkin_LIBRARIES}
${PCL_LIBRARIES}
)
else()