PCL:CMakeLists.txt配置文件

image.png

cmake_minimum_required(VERSION 2.8)
project(pcl_test)

# 设置编译模式
set( CMAKE_BUILD_TYPE "Debug" )
set(CMAKE_CXX_FLAGS   "-std=c++11")

find_package(PCL 1.7 REQUIRED)
find_package(OpenCV 3.4 REQUIRED)

include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

add_executable(pcl_test test.cpp)

target_link_libraries (pcl_test ${PCL_LIBRARIES} ${OpenCV_LIBS})

你可能感兴趣的:(PCL:CMakeLists.txt配置文件)