Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
# Basic usage, [Using PCL in your own project](https://pcl.readthedocs.io/projects/tutorials/en/latest/using_pcl_pcl_config.html#using-pcl-pcl-config)
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
project(fsai_cone_distance)
# compiler stuff
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS "-Wall -Wextra -g")
# find needed libraries
find_package(PCL 1.3 REQUIRED)
find_package(OpenCV REQUIRED)
include_directories(
${PCL_INCLUDE_DIRS}
include/
${OpenCV_INCLUDE_DIRS}
)
# link_directories(${PCL_LIBRARY_DIRS})
# add_definitions(${PCL_DEFINITIONS})
add_library(cluster.o src/clustering.cpp)
target_link_libraries(cluster.o ${PCL_LIBRARIES} ${OpenCV_LIBS})
add_library(preprocessing.o src/data_preprocessing.cpp)
target_link_libraries(preprocessing.o ${PCL_LIBRARIES} ${OpenCV_LIBS})
add_executable(get_distance src/main.cpp)
target_link_libraries(get_distance ${PCL_LIBRARIES} ${OpenCV_LIBS} preprocessing.o cluster.o)