-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
executable file
·36 lines (27 loc) · 951 Bytes
/
CMakeLists.txt
File metadata and controls
executable file
·36 lines (27 loc) · 951 Bytes
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
28
29
30
31
32
33
34
35
36
cmake_minimum_required(VERSION 3.8)
project(ext_patchworkpp)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
add_compile_options(-std=c++17)
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(alfa_node REQUIRED)
find_package(alfa_msg REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(PCL 1.8 REQUIRED)
find_package(pcl_conversions REQUIRED)
find_package(Boost 1.54 REQUIRED)
add_executable(ext_patchworkpp src/patchworkpp.cpp src/patchworkpp.hpp)
target_link_libraries(ext_patchworkpp ${PCL_LIBRARIES})
ament_target_dependencies(ext_patchworkpp rclcpp alfa_node sensor_msgs alfa_msg pcl_conversions)
install(TARGETS
ext_patchworkpp
DESTINATION lib/${PROJECT_NAME}/
)
ament_package()