forked from tork-a/adi_driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (27 loc) · 902 Bytes
/
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
28
29
30
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.8)
project(adi_imu_ros2)
add_executable(adis16470_node src/adis16470_node.cpp src/adis16470.cpp)
include_directories(include)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
ament_target_dependencies(adis16470_node rclcpp)
find_package(sensor_msgs REQUIRED)
ament_target_dependencies(adis16470_node sensor_msgs)
find_package(std_srvs REQUIRED)
ament_target_dependencies(adis16470_node std_srvs)
install(TARGETS adis16470_node
DESTINATION lib/${PROJECT_NAME}
)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION include/${PROJECT_NAME}
FILES_MATCHING PATTERN "*.h"
)
install(DIRECTORY launch urdf config
DESTINATION share/${PROJECT_NAME}
USE_SOURCE_PERMISSIONS
)
ament_package()