cmake_minimum_required(VERSION 3.16) project(ndc_pcl_ground LANGUAGES C CXX) find_package(PCL 1.12 REQUIRED COMPONENTS segmentation) add_library(pcl_ground SHARED pcl_ground.cpp) target_compile_features(pcl_ground PRIVATE cxx_std_17) target_include_directories(pcl_ground SYSTEM PRIVATE ${PCL_INCLUDE_DIRS}) target_link_libraries(pcl_ground PRIVATE ${PCL_LIBRARIES}) target_compile_options(pcl_ground PRIVATE ${PCL_DEFINITIONS}) set_target_properties(pcl_ground PROPERTIES LIBRARY_OUTPUT_DIRECTORY /opt/missioncore) file(WRITE /opt/missioncore/pcl-version.txt "${PCL_VERSION}\n")