forked from SICKAG/sick_scan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
171 lines (133 loc) · 4.43 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
####################################################
# CMakeLists.txt for project sick_scan
####################################################
cmake_minimum_required(VERSION 2.8.3)
project(sick_scan)
# By uncommenting the following lines you can list all variable names ...
# --- CUT ---
# get_cmake_property(_variableNames VARIABLES)
# list (SORT _variableNames)
# foreach (_variableName ${_variableNames})
# message(STATUS "${_variableName}=${${_variableName}}")
# endforeach()
# --- CUT ---
# For warning <catkin_workspace>/devel/include' should be placed in
# the devel space instead of the build space
# see: https://answers.ros.org/question/67244/qtcreator-with-catkin/
find_package(catkin REQUIRED
COMPONENTS
roscpp
sensor_msgs
diagnostic_updater
dynamic_reconfigure
geometry_msgs
std_msgs
sensor_msgs
visualization_msgs
message_generation
pcl_conversions
pcl_ros
)
find_package(PkgConfig REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)
generate_dynamic_reconfigure_options(cfg/SickScan.cfg)
add_message_files(
FILES
RadarObject.msg
RadarPreHeaderDeviceBlock.msg
RadarPreHeaderMeasurementParam1Block.msg
RadarPreHeaderStatusBlock.msg
RadarPreHeaderEncoderBlock.msg
RadarPreHeader.msg
RadarScan.msg
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
sensor_msgs
)
catkin_package(
DEPENDS Boost
CATKIN_DEPENDS message_runtime roscpp sensor_msgs diagnostic_updater dynamic_reconfigure
LIBRARIES sick_scan_lib
INCLUDE_DIRS include )
include_directories(include include/tinyxml ${catkin_INCLUDE_DIRS} )
add_library(sick_scan_lib
driver/src/sick_scan_common.cpp
driver/src/abstract_parser.cpp
driver/src/tcp/tcp.cpp
driver/src/tcp/Mutex.cpp
driver/src/tcp/SickThread.cpp
driver/src/tcp/errorhandler.cpp
driver/src/tcp/toolbox.cpp
driver/src/tcp/Time.cpp
driver/src/tcp/colaa.cpp
driver/src/tcp/colab.cpp
driver/src/binScanf.cpp
driver/src/sick_scan_common_tcp.cpp
driver/src/sick_generic_radar.cpp
driver/src/sick_generic_parser.cpp
driver/src/sick_scan_common_nw.cpp)
add_dependencies(sick_scan_lib ${PROJECT_NAME}_gencfg ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})
target_link_libraries(sick_scan_lib
${catkin_LIBRARIES})
add_executable(sick_generic_caller
driver/src/sick_generic_laser.cpp
driver/src/sick_generic_caller.cpp
)
#
# radar_object_marker (receives radar msg. and publishes marker array for rviz or similar
#
add_executable(radar_object_marker
tools/radar_object_marker/src/radar_object_marker.cpp
tools/pcl_converter/src/gnuplotPaletteReader.cpp
include/radar_object_marker/radar_object_marker.h)
target_link_libraries(radar_object_marker sick_scan_lib)
#
#
#
add_executable(pcl_converter tools/pcl_converter/src/pcl_converter.cpp tools/pcl_converter/src/gnuplotPaletteReader.cpp)
target_link_libraries(pcl_converter
${catkin_LIBRARIES}
${roslib_LIBRARIES}
${PCL_LIBRARIES})
# add_executable( pcl_find_plane tools/pcl_converter/src/pcl_find_plane.cpp)
# target_link_libraries(pcl_find_plane ${catkin_LIBRARIES})
target_link_libraries(sick_generic_caller sick_scan_lib)
add_executable(sick_scan_test
test/src/sick_scan_test.cpp
driver/src/tinyxml/tinystr.cpp
driver/src/tinyxml/tinyxml.cpp
driver/src/tinyxml/tinyxmlerror.cpp
driver/src/tinyxml/tinyxmlparser.cpp
)
target_link_libraries(sick_scan_test sick_scan_lib)
# Destinations:
# LIB for library
# BIN for Binaries
# INCLUDE for Includes
# SHARE for config files, launch files etc.
install(TARGETS sick_scan_lib
DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})
install(
TARGETS
sick_generic_caller
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(
TARGETS
sick_scan_test
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(FILES include/${PROJECT_NAME}/abstract_parser.h
include/${PROJECT_NAME}/sick_scan_common.h
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})
install(DIRECTORY test/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/test
FILES_MATCHING PATTERN "*.xml"
PATTERN "test/src" EXCLUDE)
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)