Skip to content

Commit 664029c

Browse files
committed
CMake install rules
Added rules to copy files necessary for running the module with "make install".
1 parent fba8041 commit 664029c

3 files changed

Lines changed: 45 additions & 8 deletions

File tree

bebop_description/CMakeLists.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,18 @@ find_package(catkin REQUIRED COMPONENTS
88
catkin_package()
99

1010
# TODO: Tests
11-
# TODO: Install Rules
11+
12+
#############
13+
## Install ##
14+
#############
15+
16+
# Copy launch files
17+
install(DIRECTORY launch/
18+
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
19+
FILES_MATCHING PATTERN "*.launch"
20+
)
21+
22+
# Copy resources
23+
install(DIRECTORY urdf/
24+
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/urdf
25+
)

bebop_driver/CMakeLists.txt

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,22 @@ target_link_libraries(bebop_driver_node
127127
# PATTERN ".svn" EXCLUDE
128128
# )
129129

130-
## Mark other files for installation (e.g. launch and bag files, etc.)
131-
# install(FILES
132-
# # myfile1
133-
# # myfile2
134-
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
135-
# )
130+
# Copy config files
131+
install(DIRECTORY config/
132+
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/config
133+
)
134+
135+
install(DIRECTORY data/
136+
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/data
137+
)
138+
139+
install(FILES nodelet_plugins.xml DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
140+
141+
# Copy launch files
142+
install(DIRECTORY launch/
143+
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
144+
FILES_MATCHING PATTERN "*.launch"
145+
)
136146

137147
#############
138148
## Testing ##

bebop_tools/CMakeLists.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,17 @@ catkin_package(
1212
CATKIN_DEPENDS bebop_msgs
1313
)
1414

15-
# TODO: Install Rules
15+
#############
16+
## Install ##
17+
#############
18+
19+
# Copy launch files
20+
install(DIRECTORY launch/
21+
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
22+
FILES_MATCHING PATTERN "*.launch"
23+
)
24+
25+
# Copy config files
26+
install(DIRECTORY config/
27+
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/config
28+
)

0 commit comments

Comments
 (0)