美文网首页PCL应用技术
PCL:CMakeLists.txt配置文件

PCL:CMakeLists.txt配置文件

作者: AI秘籍 | 来源:发表于2020-04-17 19:45 被阅读0次
    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配置文件

        本文链接:https://www.haomeiwen.com/subject/nqskvhtx.html