-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathCMakeLists.txt
47 lines (38 loc) · 1003 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
38
39
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 3.0.2)
project(tamagawa_imu_driver)
SET(CMAKE_CXX_FLAGS "-std=c++11 -O2 -g -Wall ${CMAKE_CXX_FLAGS}")
find_package(catkin REQUIRED COMPONENTS
can_msgs
diagnostic_msgs
roscpp
sensor_msgs
)
catkin_package(
CATKIN_DEPENDS
can_msgs
diagnostic_msgs
diagnostic_updater
)
include_directories(
${catkin_INCLUDE_DIRS}
include
)
add_executable(tag_serial_driver src/tag_serial_driver.cpp)
target_link_libraries(tag_serial_driver ${catkin_LIBRARIES})
add_executable(tag_can_driver src/tag_can_driver.cpp)
target_link_libraries(tag_can_driver ${catkin_LIBRARIES})
install(TARGETS tag_serial_driver tag_can_driver
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
)
install(TARGETS
tag_serial_driver
tag_can_driver
DESTINATION lib/${PROJECT_NAME}
)
install(
DIRECTORY
launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)