ubuntu PCL的使用

cmake_minimum_required(VERSION 2.8)
project(MY_GRAND_PROJECT)
find_package(PCL 1.3 REQUIRED COMPONENTS common io)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_executable(pcl_demo demp.cpp)

target_link_libraries(pcl_demo ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES})
#target_link_libraries(pcl_demo ${PCL_LIBS})

  

原文地址:https://www.cnblogs.com/flyinggod/p/10127249.html