基于PCL和Eigen3的cmakelist

需要频繁写关于点云的程序,每次cmakelist链接很麻烦,特此记录,防止继续踩坑。

cmake_minimum_required(VERSION 2.8)
project(ppp)
find_package(cmake_modules REQUIRED)
find_package(PCL REQUIRED)
find_package(Eigen3 REQUIRED)
add_definitions(-std=c++11)
add_definitions(${PCL_DEFINITIONS} )
add_definitions(${EIGEN3_DEFINITIONS})
set(PCL_INCLUDE_DIRS /usr/include/pcl-1.7/)
include_directories(
${PCL_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
)
add_executable(ppp
 src/point_cloud_alignment.cpp)

target_link_libraries(ppp
${PCL_LIBRARIES}
${EIGEN3_LIBS}

)

你可能感兴趣的:(slam,自动驾驶,Apollo,PCL,机器人)