-
Notifications
You must be signed in to change notification settings - Fork 90
/
CMakeLists.txt
103 lines (83 loc) · 2.87 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
cmake_minimum_required(VERSION 3.5.1)
cmake_policy(SET CMP0048 NEW)
project(sick_tim)
find_package(catkin REQUIRED
COMPONENTS
diagnostic_updater
dynamic_reconfigure
roscpp
roslaunch
sensor_msgs
)
find_package(PkgConfig REQUIRED)
pkg_check_modules(libusb libusb-1.0)
find_package(Boost REQUIRED COMPONENTS system)
generate_dynamic_reconfigure_options(cfg/SickTim.cfg)
catkin_package(
DEPENDS Boost libusb
CATKIN_DEPENDS roscpp sensor_msgs diagnostic_updater dynamic_reconfigure
LIBRARIES sick_tim_3xx
INCLUDE_DIRS include)
include_directories(include ${catkin_INCLUDE_DIRS} ${libusb_INCLUDE_DIRS})
add_library(sick_tim_3xx
src/sick_tim_common.cpp
src/sick_tim_common_usb.cpp
src/sick_tim_common_mockup.cpp
src/abstract_parser.cpp)
add_dependencies(sick_tim_3xx ${PROJECT_NAME}_gencfg ${catkin_EXPORTED_TARGETS})
target_link_libraries(sick_tim_3xx
${catkin_LIBRARIES}
${libusb_LIBRARIES})
add_executable(sick_tim310s01
src/sick_tim310s01.cpp
src/sick_tim310s01_parser.cpp)
target_link_libraries(sick_tim310s01 sick_tim_3xx)
add_executable(sick_tim310
src/sick_tim310.cpp
src/sick_tim310_parser.cpp)
target_link_libraries(sick_tim310 sick_tim_3xx)
add_executable(sick_tim310_1130000m01
src/sick_tim310_1130000m01.cpp
src/sick_tim310_1130000m01_parser.cpp)
target_link_libraries(sick_tim310_1130000m01 sick_tim_3xx)
add_executable(sick_tim551_2050001
src/sick_tim551_2050001.cpp
src/sick_tim_common_tcp.cpp
src/sick_tim551_2050001_parser.cpp)
target_link_libraries(sick_tim551_2050001 sick_tim_3xx)
add_executable(sick_mrs1000
src/sick_mrs1000.cpp
src/sick_mrs1000_communication.cpp
src/sick_tim_common_tcp.cpp
src/scan_and_cloud_parser.cpp
src/sick_mrs1000_parser.cpp)
target_link_libraries(sick_mrs1000 sick_tim_3xx)
add_executable(sick_tim_datagram_test
test/sick_tim_datagram_test.cpp
src/sick_tim310s01_parser.cpp
src/abstract_parser.cpp)
target_link_libraries(sick_tim_datagram_test sick_tim_3xx)
install(TARGETS sick_tim_3xx
DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})
install(
TARGETS
sick_tim310s01
sick_tim310
sick_tim310_1130000m01
sick_tim551_2050001
sick_mrs1000
sick_tim_datagram_test
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(FILES include/${PROJECT_NAME}/abstract_parser.h
include/${PROJECT_NAME}/sick_tim_common.h
include/${PROJECT_NAME}/sick_tim_common_usb.h
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch)
install(DIRECTORY meshes/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/meshes)
install(DIRECTORY urdf/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/urdf)
if(CATKIN_ENABLE_TESTING)
roslaunch_add_file_check(launch)
endif(CATKIN_ENABLE_TESTING)