Skip to content

Commit 596a128

Browse files
committed
Use catkin_lint_cmake
1 parent 94d9253 commit 596a128

File tree

2 files changed

+58
-17
lines changed

2 files changed

+58
-17
lines changed

ed_sensor_integration/CMakeLists.txt

Lines changed: 55 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ find_package(PCL REQUIRED COMPONENTS common kdtree)
99
find_package(catkin REQUIRED COMPONENTS
1010
code_profiler
1111
ed
12-
ed_sensor_integration_msgs
12+
${PROJECT_NAME}_msgs
1313
geolib2
1414
geometry_msgs
1515
image_geometry
@@ -30,7 +30,7 @@ find_package(catkin REQUIRED COMPONENTS
3030
catkin_package(
3131
INCLUDE_DIRS include
3232
LIBRARIES ed_kinect
33-
CATKIN_DEPENDS code_profiler ed ed_sensor_integration_msgs geolib2 image_geometry rgbd rgbd_image_buffer roscpp tue_config visualization_msgs
33+
CATKIN_DEPENDS code_profiler ed ${PROJECT_NAME}_msgs geolib2 image_geometry rgbd rgbd_image_buffer roscpp tue_config visualization_msgs
3434
DEPENDS OpenCV PCL
3535
)
3636

@@ -49,34 +49,34 @@ include_directories(
4949
# ------------------------------------------------------------------------------------------------
5050

5151
add_library(ed_association
52+
include/${PROJECT_NAME}/association_matrix.h
5253
src/association_matrix.cpp
53-
include/ed_sensor_integration/association_matrix.h
5454
)
5555

5656
add_library(ed_kinect
57-
src/kinect/fitter.cpp
58-
include/ed/kinect/fitter.h
59-
src/kinect/beam_model.cpp
57+
include/ed/kinect/association.h
6058
include/ed/kinect/beam_model.h
61-
src/kinect/mesh_tools.cpp
59+
include/ed/kinect/entity_update.h
60+
include/ed/kinect/fitter.h
6261
include/ed/kinect/mesh_tools.h
63-
src/kinect/segmenter.cpp
62+
include/ed/kinect/renderer.h
6463
include/ed/kinect/segmenter.h
65-
src/kinect/association.cpp
66-
include/ed/kinect/association.h
67-
src/kinect/updater.cpp
6864
include/ed/kinect/updater.h
69-
include/ed/kinect/entity_update.h
65+
src/kinect/association.cpp
66+
src/kinect/beam_model.cpp
67+
src/kinect/fitter.cpp
68+
src/kinect/mesh_tools.cpp
7069
src/kinect/renderer.cpp
71-
include/ed/kinect/renderer.h
70+
src/kinect/segmenter.cpp
71+
src/kinect/updater.cpp
7272
)
7373
target_link_libraries(ed_kinect ed_association ${catkin_LIBRARIES})
7474
add_dependencies(ed_kinect ${catkin_EXPORTED_TARGETS})
7575

7676
add_library(ed_laser
77-
src/laser/updater.cpp
78-
include/ed/laser/updater.h
7977
include/ed/laser/entity_update.h
78+
include/ed/laser/updater.h
79+
src/laser/updater.cpp
8080
)
8181
target_link_libraries(ed_laser ed_association ${catkin_LIBRARIES})
8282
add_dependencies(ed_laser ${catkin_EXPORTED_TARGETS})
@@ -127,10 +127,49 @@ target_link_libraries(ed_fitter_data ed_kinect)
127127
add_executable(ed_fitter_live tools/fitter_viz_live.cpp)
128128
target_link_libraries(ed_fitter_live ed_kinect)
129129

130+
# ------------------------------------------------------------------------------------------------
131+
# Install
132+
# ------------------------------------------------------------------------------------------------
133+
134+
install(
135+
FILES plugins.xml
136+
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
137+
)
138+
139+
install(
140+
DIRECTORY include/
141+
DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}
142+
)
143+
144+
install(
145+
TARGETS
146+
ed_association
147+
ed_clearer_plugin
148+
ed_kinect
149+
ed_kinect_plugin
150+
ed_laser
151+
ed_laser_plugin
152+
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
153+
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
154+
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
155+
)
156+
157+
install(
158+
TARGETS
159+
ed_fitter_data
160+
ed_fitter_live
161+
ed_image_saver
162+
ed_segmenter
163+
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
164+
)
165+
130166
# ------------------------------------------------------------------------------------------------
131167
# TESTS
132168
# ------------------------------------------------------------------------------------------------
133-
if(CATKIN_ENABLE_TESTING)
169+
if (CATKIN_ENABLE_TESTING)
170+
find_package(catkin_lint_cmake REQUIRED)
171+
catkin_add_catkin_lint_test("-W2 --ignore HEADER_OUTSIDE_PACKAGE_INCLUDE_PATH")
172+
134173
catkin_add_gtest(test_furniture_fitting test/test_furniture_fit.cpp)
135174
target_link_libraries(test_furniture_fitting ed_kinect ${catkin_LIBRARIES})
136175

ed_sensor_integration/package.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<package format="3">
66
<name>ed_sensor_integration</name>
77
<version>0.0.0</version>
8-
<description>No description available</description>
8+
<description>Plugins to integrate sensor data into the ED worldmodel</description>
99

1010
<maintainer email="s.v.d.dries@tue.nl">Sjoerd van den Dries</maintainer>
1111

@@ -36,6 +36,8 @@
3636
<build_depend>tue_filesystem</build_depend>
3737
<exec_depend>tue_filesystem</exec_depend>
3838

39+
<test_depend>catkin_lint_cmake</test_depend>
40+
3941
<doc_depend>doxygen</doc_depend>
4042

4143
<export>

0 commit comments

Comments
 (0)