Advertisement
FahmiG

Turtlebot cmakelist

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