robobuggy / buggynav / CMakeLists.txt @ 9d53c5e0
History | View | Annotate | Download (5.38 KB)
1 |
cmake_minimum_required(VERSION 2.8.3) |
---|---|
2 |
project(buggynav) |
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 |
find_package( |
8 |
catkin REQUIRED COMPONENTS |
9 |
# When in doubt, add the package here too. |
10 |
# In addition, add 'message_runtime' to catkin-depends. |
11 |
roscpp |
12 |
rospy |
13 |
std_msgs |
14 |
buggymsgs |
15 |
) |
16 |
|
17 |
## System dependencies are found with CMake's conventions |
18 |
# find_package(Boost REQUIRED COMPONENTS system) |
19 |
|
20 |
|
21 |
## Uncomment this if the package has a setup.py. This macro ensures |
22 |
## modules and global scripts declared therein get installed |
23 |
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html |
24 |
# catkin_python_setup() |
25 |
|
26 |
################################################ |
27 |
## Declare ROS messages, services and actions ## |
28 |
################################################ |
29 |
|
30 |
## To declare and build messages, services or actions from within this |
31 |
## package, follow these steps: |
32 |
## * Let MSG_DEP_SET be the set of packages whose message types you use in |
33 |
## your messages/services/actions (e.g. std_msgs, actionlib_msgs, ...). |
34 |
## * In the file package.xml: |
35 |
## * add a build_depend and a run_depend tag for each package in MSG_DEP_SET |
36 |
## * If MSG_DEP_SET isn't empty the following dependencies might have been |
37 |
## pulled in transitively but can be declared for certainty nonetheless: |
38 |
## * add a build_depend tag for "message_generation" |
39 |
## * add a run_depend tag for "message_runtime" |
40 |
## * In this file (CMakeLists.txt): |
41 |
## * add "message_generation" and every package in MSG_DEP_SET to |
42 |
## find_package(catkin REQUIRED COMPONENTS ...) |
43 |
## * add "message_runtime" and every package in MSG_DEP_SET to |
44 |
## catkin_package(CATKIN_DEPENDS ...) |
45 |
## * uncomment the add_*_files sections below as needed |
46 |
## and list every .msg/.srv/.action file to be processed |
47 |
## * uncomment the generate_messages entry below |
48 |
## * add every package in MSG_DEP_SET to generate_messages(DEPENDENCIES ...) |
49 |
|
50 |
## Generate messages in the 'msg' folder |
51 |
# add_message_files( |
52 |
# FILES |
53 |
# Message1.msg |
54 |
# Message2.msg |
55 |
# ) |
56 |
|
57 |
## Generate services in the 'srv' folder |
58 |
# add_service_files( |
59 |
# FILES |
60 |
# Service1.srv |
61 |
# Service2.srv |
62 |
# ) |
63 |
|
64 |
## Generate actions in the 'action' folder |
65 |
# add_action_files( |
66 |
# FILES |
67 |
# Action1.action |
68 |
# Action2.action |
69 |
# ) |
70 |
|
71 |
## Generate added messages and services with any dependencies listed here |
72 |
#generate_messages( |
73 |
# DEPENDENCIES |
74 |
# std_msgs |
75 |
# buggymsgs |
76 |
#) |
77 |
|
78 |
################################### |
79 |
## catkin specific configuration ## |
80 |
################################### |
81 |
## The catkin_package macro generates cmake config files for your package |
82 |
## Declare things to be passed to dependent projects |
83 |
## INCLUDE_DIRS: uncomment this if you package contains header files |
84 |
## LIBRARIES: libraries you create in this project that dependent projects also need |
85 |
## CATKIN_DEPENDS: catkin_packages dependent projects also need |
86 |
## DEPENDS: system dependencies of this project that dependent projects also need |
87 |
catkin_package( |
88 |
# INCLUDE_DIRS include |
89 |
# LIBRARIES buggynav |
90 |
CATKIN_DEPENDS roscpp rospy std_msgs message_runtime buggymsgs |
91 |
# DEPENDS system_lib |
92 |
) |
93 |
|
94 |
########### |
95 |
## Build ## |
96 |
########### |
97 |
|
98 |
## Specify additional locations of header files |
99 |
## Your package locations should be listed before other locations |
100 |
# include_directories(include) |
101 |
include_directories( |
102 |
${catkin_INCLUDE_DIRS} |
103 |
) |
104 |
|
105 |
## Declare a cpp library |
106 |
# add_library(buggynav |
107 |
# src/${PROJECT_NAME}/buggynav.cpp |
108 |
# ) |
109 |
|
110 |
## Declare a cpp executable |
111 |
# add_executable(buggynav_node src/buggynav_node.cpp) |
112 |
|
113 |
# Add teleop executable |
114 |
add_executable(buggy_teleop src/buggy_teleop.cpp) |
115 |
target_link_libraries(buggy_teleop ${catkin_LIBRARIES}) |
116 |
add_dependencies(buggy_teleop buggymsgs_generate_messages_cpp) |
117 |
|
118 |
## Add cmake target dependencies of the executable/library |
119 |
## as an example, message headers may need to be generated before nodes |
120 |
# add_dependencies(buggynav_node buggynav_generate_messages_cpp) |
121 |
|
122 |
## Specify libraries to link a library or executable target against |
123 |
# target_link_libraries(buggynav_node |
124 |
# ${catkin_LIBRARIES} |
125 |
# ) |
126 |
|
127 |
############# |
128 |
## Install ## |
129 |
############# |
130 |
|
131 |
# all install targets should use catkin DESTINATION variables |
132 |
# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html |
133 |
|
134 |
## Mark executable scripts (Python etc.) for installation |
135 |
## in contrast to setup.py, you can choose the destination |
136 |
# install(PROGRAMS |
137 |
# scripts/my_python_script |
138 |
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} |
139 |
# ) |
140 |
|
141 |
## Mark executables and/or libraries for installation |
142 |
# install(TARGETS buggynav buggynav_node |
143 |
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} |
144 |
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} |
145 |
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} |
146 |
# ) |
147 |
|
148 |
## Mark cpp header files for installation |
149 |
# install(DIRECTORY include/${PROJECT_NAME}/ |
150 |
# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} |
151 |
# FILES_MATCHING PATTERN "*.h" |
152 |
# PATTERN ".svn" EXCLUDE |
153 |
# ) |
154 |
|
155 |
## Mark other files for installation (e.g. launch and bag files, etc.) |
156 |
# install(FILES |
157 |
# # myfile1 |
158 |
# # myfile2 |
159 |
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} |
160 |
# ) |
161 |
|
162 |
############# |
163 |
## Testing ## |
164 |
############# |
165 |
|
166 |
## Add gtest based cpp test target and link libraries |
167 |
# catkin_add_gtest(${PROJECT_NAME}-test test/test_buggynav.cpp) |
168 |
# if(TARGET ${PROJECT_NAME}-test) |
169 |
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME}) |
170 |
# endif() |
171 |
|
172 |
## Add folders to be run by python nosetests |
173 |
# catkin_add_nosetests(test) |