|
1 | 1 | cmake_minimum_required(VERSION 2.8.3)
|
2 | 2 | project(rrbot_description)
|
3 | 3 |
|
4 |
| -## Find catkin macros and libraries |
5 |
| -## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz) |
6 |
| -## is used, also find other catkin packages |
7 | 4 | find_package(catkin REQUIRED)
|
8 | 5 |
|
9 |
| -## System dependencies are found with CMake's conventions |
10 |
| -# find_package(Boost REQUIRED COMPONENTS system) |
| 6 | +catkin_package() |
11 | 7 |
|
| 8 | +install(DIRECTORY launch |
| 9 | + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) |
12 | 10 |
|
13 |
| -## Uncomment this if the package has a setup.py. This macro ensures |
14 |
| -## modules and global scripts declared therein get installed |
15 |
| -## See http://ros.org/doc/groovy/api/catkin/html/user_guide/setup_dot_py.html |
16 |
| -# catkin_python_setup() |
| 11 | +install(DIRECTORY meshes |
| 12 | + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) |
17 | 13 |
|
18 |
| -####################################### |
19 |
| -## Declare ROS messages and services ## |
20 |
| -####################################### |
21 |
| - |
22 |
| -## Generate messages in the 'msg' folder |
23 |
| -# add_message_files( |
24 |
| -# FILES |
25 |
| -# Message1.msg |
26 |
| -# Message2.msg |
27 |
| -# ) |
28 |
| - |
29 |
| -## Generate services in the 'srv' folder |
30 |
| -# add_service_files( |
31 |
| -# FILES |
32 |
| -# Service1.srv |
33 |
| -# Service2.srv |
34 |
| -# ) |
35 |
| - |
36 |
| -## Generate added messages and services with any dependencies listed here |
37 |
| -# generate_messages( |
38 |
| -# DEPENDENCIES |
39 |
| -# std_msgs # Or other packages containing msgs |
40 |
| -# ) |
41 |
| - |
42 |
| -################################### |
43 |
| -## catkin specific configuration ## |
44 |
| -################################### |
45 |
| -## The catkin_package macro generates cmake config files for your package |
46 |
| -## Declare things to be passed to dependent projects |
47 |
| -## LIBRARIES: libraries you create in this project that dependent projects also need |
48 |
| -## CATKIN_DEPENDS: catkin_packages dependent projects also need |
49 |
| -## DEPENDS: system dependencies of this project that dependent projects also need |
50 |
| -catkin_package( |
51 |
| -# INCLUDE_DIRS include |
52 |
| -# LIBRARIES rrbot_description |
53 |
| -# CATKIN_DEPENDS other_catkin_pkg |
54 |
| -# DEPENDS system_lib |
55 |
| -) |
56 |
| - |
57 |
| -########### |
58 |
| -## Build ## |
59 |
| -########### |
60 |
| - |
61 |
| -## Specify additional locations of header files |
62 |
| -## Your package locations should be listed before other locations |
63 |
| -# include_directories(include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}) |
64 |
| - |
65 |
| -## Declare a cpp library |
66 |
| -# add_library(rrbot_description |
67 |
| -# src/${PROJECT_NAME}/rrbot_description.cpp |
68 |
| -# ) |
69 |
| - |
70 |
| -## Declare a cpp executable |
71 |
| -# add_executable(rrbot_description_node src/rrbot_description_node.cpp) |
72 |
| - |
73 |
| -## Add cmake target dependencies of the executable/library |
74 |
| -## as an example, message headers may need to be generated before nodes |
75 |
| -# add_dependencies(rrbot_description_node rrbot_description_generate_messages_cpp) |
76 |
| - |
77 |
| -## Specify libraries to link a library or executable target against |
78 |
| -# target_link_libraries(rrbot_description_node |
79 |
| -# ${catkin_LIBRARIES} |
80 |
| -# ) |
81 |
| - |
82 |
| -############# |
83 |
| -## Install ## |
84 |
| -############# |
85 |
| - |
86 |
| -# all install targets should use catkin DESTINATION variables |
87 |
| -# See http://ros.org/doc/groovy/api/catkin/html/adv_user_guide/variables.html |
88 |
| - |
89 |
| -## Mark executable scripts (Python etc.) for installation |
90 |
| -## in contrast to setup.py, you can choose the destination |
91 |
| -# install(PROGRAMS |
92 |
| -# scripts/my_python_script |
93 |
| -# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} |
94 |
| -# ) |
95 |
| - |
96 |
| -## Mark executables and/or libraries for installation |
97 |
| -# install(TARGETS rrbot_description rrbot_description_node |
98 |
| -# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} |
99 |
| -# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} |
100 |
| -# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} |
101 |
| -# ) |
102 |
| - |
103 |
| -## Mark cpp header files for installation |
104 |
| -# install(DIRECTORY include/${PROJECT_NAME}/ |
105 |
| -# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} |
106 |
| -# FILES_MATCHING PATTERN "*.h" |
107 |
| -# PATTERN ".svn" EXCLUDE |
108 |
| -# ) |
109 |
| - |
110 |
| -## Mark other files for installation (e.g. launch and bag files, etc.) |
111 |
| -# install(FILES |
112 |
| -# # myfile1 |
113 |
| -# # myfile2 |
114 |
| -# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} |
115 |
| -# ) |
116 |
| - |
117 |
| -############# |
118 |
| -## Testing ## |
119 |
| -############# |
120 |
| - |
121 |
| -## Add gtest based cpp test target and link libraries |
122 |
| -# catkin_add_gtest(${PROJECT_NAME}-test test/test_rrbot_description.cpp) |
123 |
| -# if(TARGET ${PROJECT_NAME}-test) |
124 |
| -# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME}) |
125 |
| -# endif() |
126 |
| - |
127 |
| -## Add folders to be run by python nosetests |
128 |
| -# catkin_add_nosetests(test) |
| 14 | +install(DIRECTORY urdf |
| 15 | + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) |
0 commit comments