Advertisement
AbraaoAllysson

asssdasdsa

Oct 11th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. cmake_minimum_required(VERSION 2.8)
  2.  
  3. #More information look at:
  4. #thanks to: http://jbohren.com/articles/gentle-catkin-intro/
  5.  
  6. project(COMPILE_ROS)
  7.  
  8. #Set the c++ version
  9. #set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
  10.  
  11. #Set the output directory
  12. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
  13.  
  14. #Set the include directory
  15. include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
  16.  
  17. #Find roscpp package...
  18. find_package(roscpp REQUIRED)
  19. include_directories(${roscpp_INCLUDE_DIRS})
  20.  
  21. #CMake's configurations:
  22. #Set executable
  23. add_executable(main main.cpp)
  24. #Set linkable libraries
  25. target_link_libraries(main ${roscpp_LIBRARIES})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement