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.

204 lines
6.9 KiB

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