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.

203 lines
6.9 KiB

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