Guest User

CMake Build Error 2

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