Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 2.8)
- #More information look at:
- #thanks to: http://jbohren.com/articles/gentle-catkin-intro/
- project(COMPILE_ROS)
- #Set the c++ version
- #set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
- #Set the output directory
- set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
- #Set the include directory
- include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
- #Find roscpp package...
- find_package(roscpp REQUIRED)
- include_directories(${roscpp_INCLUDE_DIRS})
- #CMake's configurations:
- #Set executable
- add_executable(main main.cpp)
- #Set linkable libraries
- target_link_libraries(main ${roscpp_LIBRARIES})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement