PCL CMakeLists configure

只要配置这些,pcl相关的计算和展示等都可以使用了

find_package( PCL REQUIRED COMPONENTS common io visualization )

message(${PCL_VERSION})

include_directories( ${PCL_INCLUDE_DIRS})

link_directories(${PCL_LIBRARY_DIRS})

add_definitions(${PCL_DEFINITIONS})

set(PCL_LIBRARIES_ALL ${PCL_LIBRARIES}  ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES}  ${PCL_VISUALIZATION_LIB})

target_link_libraries(demo ${PCL_LIBRARIES_ALL})

你可能感兴趣的:(c++)