add pcl
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user