Advertisement
Guest User

CMakeLists.txt

a guest
May 19th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(ros_aruco)
  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 roscpp tf std_msgs sensor_msgs geometry_msgs message_generation genmsg cv_bridge image_transport)
  8.  
  9. ## TODO: Make this configurable via variable
  10. SET(CMAKE_MODULE_PATH ${ARUCO_PATH}/lib/cmake )
  11. SET(ARUCO_INCLUDE_DIRS ${ARUCO_PATH}/include/aruco )
  12.  
  13. ## System dependencies are found with CMake's conventions
  14. find_package(aruco REQUIRED )
  15. find_package(OpenCV REQUIRED )
  16.  
  17. INCLUDE(FindPkgConfig)
  18.  
  19. set(ROS_BUILD_TYPE Debug)
  20.  
  21. ## Uncomment this if the package has a setup.py. This macro ensures
  22. ## modules and global scripts declared therein get installed
  23. ## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
  24. # catkin_python_setup()
  25.  
  26. #######################################
  27. ## Declare ROS messages and services ##
  28. #######################################
  29.  
  30. ## generate actions:
  31. # add_action_files(
  32. # DIRECTORY action
  33. # FILES register_access.action
  34. # )
  35.  
  36.  
  37. ## Generate messages in the 'msg' folder
  38. # add_message_files(
  39. # FILES
  40. # joint_state.msg
  41. # device_info.msg
  42. # device_state.msg
  43. # bus_state.msg
  44. # health_state.msg
  45. # smoothmotion_joint_target.msg
  46. # )
  47.  
  48. ## Generate services in the 'srv' folder
  49. # add_service_files(
  50. # FILES
  51. # register_access.srv
  52. # server_state.srv
  53. # )
  54.  
  55.  
  56.  
  57. ## Generate added messages and services with any dependencies listed here
  58. # generate_messages(
  59. # DEPENDENCIES
  60. # std_msgs
  61. # xsc3
  62. # )
  63.  
  64. ###################################
  65. ## catkin specific configuration ##
  66. ###################################
  67. ## The catkin_package macro generates cmake config files for your package
  68. ## Declare things to be passed to dependent projects
  69. ## INCLUDE_DIRS: uncomment this if you package contains header files
  70. ## LIBRARIES: libraries you create in this project that dependent projects also need
  71. ## CATKIN_DEPENDS: catkin_packages dependent projects also need
  72. ## DEPENDS: system dependencies of this project that dependent projects also need
  73. # catkin_package(
  74. # INCLUDE_DIRS include
  75. # CATKIN_DEPENDS message_runtime actionlib_msgs
  76. # DEPENDS system_lib
  77. # )
  78.  
  79. ###########
  80. ## Build ##
  81. ###########
  82.  
  83. ## Specify additional locations of header files
  84. ## Your package locations should be listed before other locations
  85. include_directories(
  86. ${catkin_INCLUDE_DIRS}
  87. ${ARUCO_INCLUDE_DIRS}
  88. )
  89.  
  90. add_executable(ros_aruco src/ros_aruco.cpp
  91. )
  92. add_executable(subpose src/subpose.cpp)
  93.  
  94. ## Add cmake target dependencies of the executable/library
  95. ## as an example, message headers may need to be generated before nodes
  96. add_dependencies(ros_aruco ${catkin_EXPORTED_TARGETS})
  97.  
  98. target_link_libraries(ros_aruco
  99. ${catkin_LIBRARIES}
  100. ${OpenCV_LIBS}
  101. ${aruco_LIBS}
  102. )
  103.  
  104. target_link_libraries(subpose
  105. ${catkin_LIBRARIES}
  106. )
  107.  
  108.  
  109. #############
  110. ## Install ##
  111. #############
  112.  
  113. # TODO
  114.  
  115. #############
  116. ## Testing ##
  117. #############
  118.  
  119. # TODO
  120.  
  121. ## Add gtest based cpp test target and link libraries
  122. # catkin_add_gtest(${PROJECT_NAME}-test test/test_xsc3.cpp)
  123. # if(TARGET ${PROJECT_NAME}-test)
  124. # target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
  125. # endif()
  126.  
  127. ## Add folders to be run by python nosetests
  128. # catkin_add_nosetests(test)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement