clion配置PCL

综述

clion配置PCL

配置

关于如何在mac上安装PCL可见
mac安装PCL
主要是cmakelist的配置

cmake_minimum_required(VERSION 3.5)
project(CG_detect)

#set(PCL_DIR "your path")
find_package(PCL 1.3 REQUIRED COMPONENTS common io)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
set(CMAKE_CXX_FLAGS "-g -Wall -std=c++11")
set(SOURCE_FILES main.cpp)
add_executable(PCLtest ${SOURCE_FILES})
target_link_libraries(PCLtest ${PCL_LIBRARIES})


你可能感兴趣的:(PCL)