-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
27 lines (23 loc) · 1 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Following line is required to perform compatibility checks
# Make sure that the version is at least 3.5, as required by PCL
cmake_minimum_required(VERSION 3.5)
project(pcl_cmake_minimum)
# Use the following to link against all the PCL libraries
# Remove REQUIRED if PCL is not compulsory
# Note: might be heavy, not the best practice
# find_package(PCL REQUIRED)
# Prefer to use the correct component libraries instead
find_package(PCL COMPONENTS common REQUIRED)
# All header directories not under your control go here
# ${PCL_INCLUDE_DIRS} not required to be manually added since PCL 1.9
# include_directories(SYSTEM)
# Headers for this project go here
# include_directories(include)
# Add a target to compile for cmake
# CMake automatically chooses the correct flags for executable or library
add_executable(pcl_demo main.cpp)
# add_library(pcl_demo main.cpp)
# Add the required libraries
target_link_libraries(pcl_demo ${PCL_LIBRARIES})
# Add the dependencies, if any
# add_dependencies(pcl_demo some_other_target)