Advertisement
Guest User

Untitled

a guest
Oct 15th, 2011
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 1.18 KB | None | 0 0
  1. cmake_minimum_required(VERSION 2.4.6)
  2. include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
  3.  
  4. # Set the build type.  Options are:
  5. #  Coverage       : w/ debug symbols, w/o optimization, w/ code-coverage
  6. #  Debug          : w/ debug symbols, w/o optimization
  7. #  Release        : w/o debug symbols, w/ optimization
  8. #  RelWithDebInfo : w/ debug symbols, w/ optimization
  9. #  MinSizeRel     : w/o debug symbols, w/ optimization, stripped binaries
  10. #set(ROS_BUILD_TYPE RelWithDebInfo)
  11.  
  12. rosbuild_init()
  13. #set the default path for built executables to the "bin" directory
  14. set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
  15. #set the default path for built libraries to the "lib" directory
  16. set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
  17.  
  18. #uncomment if you have defined messages
  19. #rosbuild_genmsg()
  20. #uncomment if you have defined services
  21. #rosbuild_gensrv()
  22.  
  23. #common commands for building c++ executables and libraries
  24. #rosbuild_add_library(${PROJECT_NAME} src/example.cpp)
  25. #target_link_libraries(${PROJECT_NAME} another_library)
  26. #rosbuild_add_boost_directories()
  27. #rosbuild_link_boost(${PROJECT_NAME} thread)
  28. rosbuild_add_executable(depthListener src/depthListener.cpp)
  29. #target_link_libraries(example ${PROJECT_NAME})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement