-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (35 loc) · 1.07 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required(VERSION 3.0.2)
project(can_ros1_driver)
add_compile_options(-std=c++14)
find_package(catkin REQUIRED COMPONENTS
roscpp
tf
std_msgs
nav_msgs
geometry_msgs
visualization_msgs
sensor_msgs
)
find_package(yaml-cpp REQUIRED)
catkin_package(CATKIN_DEPENDS
roscpp
tf
std_msgs
nav_msgs
geometry_msgs
visualization_msgs
sensor_msgs
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${YAML_CPP_INCLUDE_DIR}
)
add_executable(can_receive_node src/can_receive.cpp src/can_receive_node.cpp)
target_link_libraries(can_receive_node ${catkin_LIBRARIES} yaml-cpp)
add_executable(can_send_node src/can_send.cpp src/can_send_node.cpp)
target_link_libraries(can_send_node ${catkin_LIBRARIES})
add_executable(imu_convert_node src/imu_convert.cpp src/imu_convert_node.cpp)
target_link_libraries(imu_convert_node ${catkin_LIBRARIES})
# include_directories(/usr/local/include/yaml-cpp)
# target_link_libraries(can_receive_node /usr/local/lib/libyaml-cpp.a)