You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

206 lines
6.8 KiB

  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(stretch_demos)
  3. ## Compile as C++11, supported in ROS Kinetic and newer
  4. # add_compile_options(-std=c++11)
  5. ## Find catkin macros and libraries
  6. ## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
  7. ## is used, also find other catkin packages
  8. find_package(catkin REQUIRED COMPONENTS
  9. actionlib
  10. actionlib_msgs
  11. geometry_msgs
  12. nav_msgs
  13. control_msgs
  14. trajectory_msgs
  15. rospy
  16. std_msgs
  17. std_srvs
  18. tf
  19. tf2
  20. )
  21. ## System dependencies are found with CMake's conventions
  22. # find_package(Boost REQUIRED COMPONENTS system)
  23. ## Uncomment this if the package has a setup.py. This macro ensures
  24. ## modules and global scripts declared therein get installed
  25. ## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
  26. # catkin_python_setup()
  27. ################################################
  28. ## Declare ROS messages, services and actions ##
  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 tag for "message_generation"
  36. ## * add a build_depend and a exec_depend tag for each package in MSG_DEP_SET
  37. ## * If MSG_DEP_SET isn't empty the following dependency has been pulled in
  38. ## but can be declared for certainty nonetheless:
  39. ## * add a exec_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. ## Generate messages in the 'msg' folder
  50. # add_message_files(
  51. # FILES
  52. # Message1.msg
  53. # Message2.msg
  54. # )
  55. ## Generate services in the 'srv' folder
  56. # add_service_files(
  57. # FILES
  58. # Service1.srv
  59. # Service2.srv
  60. # )
  61. ## Generate actions in the 'action' folder
  62. # add_action_files(
  63. # FILES
  64. # Action1.action
  65. # Action2.action
  66. # )
  67. ## Generate added messages and services with any dependencies listed here
  68. # generate_messages(
  69. # DEPENDENCIES
  70. # actionlib_msgs# geometry_msgs# nav_msgs# std_msgs
  71. # )
  72. ################################################
  73. ## Declare ROS dynamic reconfigure parameters ##
  74. ################################################
  75. ## To declare and build dynamic reconfigure parameters within this
  76. ## package, follow these steps:
  77. ## * In the file package.xml:
  78. ## * add a build_depend and a exec_depend tag for "dynamic_reconfigure"
  79. ## * In this file (CMakeLists.txt):
  80. ## * add "dynamic_reconfigure" to
  81. ## find_package(catkin REQUIRED COMPONENTS ...)
  82. ## * uncomment the "generate_dynamic_reconfigure_options" section below
  83. ## and list every .cfg file to be processed
  84. ## Generate dynamic reconfigure parameters in the 'cfg' folder
  85. # generate_dynamic_reconfigure_options(
  86. # cfg/DynReconf1.cfg
  87. # cfg/DynReconf2.cfg
  88. # )
  89. ###################################
  90. ## catkin specific configuration ##
  91. ###################################
  92. ## The catkin_package macro generates cmake config files for your package
  93. ## Declare things to be passed to dependent projects
  94. ## INCLUDE_DIRS: uncomment this if your package contains header files
  95. ## LIBRARIES: libraries you create in this project that dependent projects also need
  96. ## CATKIN_DEPENDS: catkin_packages dependent projects also need
  97. ## DEPENDS: system dependencies of this project that dependent projects also need
  98. catkin_package(
  99. # INCLUDE_DIRS include
  100. # LIBRARIES stretch_demos
  101. # CATKIN_DEPENDS actionlib actionlib_msgs geometry_msgs nav_msgs rospy std_msgs tf tf2
  102. # DEPENDS system_lib
  103. )
  104. ###########
  105. ## Build ##
  106. ###########
  107. ## Specify additional locations of header files
  108. ## Your package locations should be listed before other locations
  109. include_directories(
  110. # include
  111. ${catkin_INCLUDE_DIRS}
  112. )
  113. ## Declare a C++ library
  114. # add_library(${PROJECT_NAME}
  115. # src/${PROJECT_NAME}/stretch_demos.cpp
  116. # )
  117. ## Add cmake target dependencies of the library
  118. ## as an example, code may need to be generated before libraries
  119. ## either from message generation or dynamic reconfigure
  120. # add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
  121. ## Declare a C++ executable
  122. ## With catkin_make all packages are built within a single CMake context
  123. ## The recommended prefix ensures that target names across packages don't collide
  124. # add_executable(${PROJECT_NAME}_node src/stretch_demos_node.cpp)
  125. ## Rename C++ executable without prefix
  126. ## The above recommended prefix causes long target names, the following renames the
  127. ## target back to the shorter version for ease of user use
  128. ## e.g. "rosrun someones_pkg node" instead of "rosrun someones_pkg someones_pkg_node"
  129. # set_target_properties(${PROJECT_NAME}_node PROPERTIES OUTPUT_NAME node PREFIX "")
  130. ## Add cmake target dependencies of the executable
  131. ## same as for the library above
  132. # add_dependencies(${PROJECT_NAME}_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
  133. ## Specify libraries to link a library or executable target against
  134. # target_link_libraries(${PROJECT_NAME}_node
  135. # ${catkin_LIBRARIES}
  136. # )
  137. #############
  138. ## Install ##
  139. #############
  140. # all install targets should use catkin DESTINATION variables
  141. # See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html
  142. ## Mark executable scripts (Python etc.) for installation
  143. ## in contrast to setup.py, you can choose the destination
  144. #install(PROGRAMS
  145. # DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  146. # )
  147. ## Mark executables and/or libraries for installation
  148. # install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}_node
  149. # ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  150. # LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  151. # RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  152. # )
  153. ## Mark cpp header files for installation
  154. # install(DIRECTORY include/${PROJECT_NAME}/
  155. # DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
  156. # FILES_MATCHING PATTERN "*.h"
  157. # PATTERN ".svn" EXCLUDE
  158. # )
  159. ## Mark other files for installation (e.g. launch and bag files, etc.)
  160. # install(FILES
  161. # # myfile1
  162. # # myfile2
  163. # DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
  164. # )
  165. #############
  166. ## Testing ##
  167. #############
  168. ## Add gtest based cpp test target and link libraries
  169. # catkin_add_gtest(${PROJECT_NAME}-test test/test_stretch_demos.cpp)
  170. # if(TARGET ${PROJECT_NAME}-test)
  171. # target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
  172. # endif()
  173. ## Add folders to be run by python nosetests
  174. # catkin_add_nosetests(test)