Guest User

Untitled

a guest
Dec 1st, 2018
105
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
  2. project(force_measure)
  3.  
  4. include (FindPkgConfig)
  5. if (PKG_CONFIG_FOUND)
  6. pkg_check_modules(GAZEBO gazebo)
  7. endif()
  8.  
  9. include(FindBoost)
  10. find_package(Boost ${MIN_BOOST_VERSION} REQUIRED system filesystem regex)
  11.  
  12. find_package(Protobuf REQUIRED)
  13. find_package(catkin REQUIRED COMPONENTS roscpp gazebo_msgs geometry_msgs nav_msgs)
  14.  
  15. catkin_package()
  16.  
  17. include_directories(${GAZEBO_INCLUDE_DIRS})
  18. link_directories(${GAZEBO_LIBRARY_DIRS})
  19.  
  20. add_executable(listener listener.cpp)
  21. add_executable(listener2 listener2.cpp)
  22.  
  23. target_link_libraries(listener ${GAZEBO_LIBRARIES} ${Boost_LIBRARIES} ${PROTOBUF_LIBRARIES} pthread)
  24. target_link_libraries(listener2 ${catkin_LIBRARIES} ${GAZEBO_LIBRARIES} ${Boost_LIBRARIES} ${PROTOBUF_LIBRARIES} pthread)
RAW Paste Data