码迷,mamicode.com
首页 > 其他好文 > 详细

PCL-CMAKELIST书写格式

时间:2019-04-26 22:46:32      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:nbsp   list   1.3   lin   get   模块   fatal   dir   exec   

cmake_minimum_required(VERSION 2.6 FATAL_ERROR)//cmake最小版本
find_package(PCL 1.3 REQUIRED COMPONENTS common io)//PCL本次编译必须包含common和io两个模块,如果需要包含所有模块,把components后面去掉
include_directories(${PCL_INCLUDE_DIRS})
link_libraries(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

add_executable( pcd pcd.cpp)
target_link_libraries(pcd ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES})//如果包含所有模块,将这两个库换成${PCL_LIBRARY_DIRS}

 

 

PCL-CMAKELIST书写格式

标签:nbsp   list   1.3   lin   get   模块   fatal   dir   exec   

原文地址:https://www.cnblogs.com/excellentlhw/p/10776872.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!