CMakeLists.txt 1.2 KB

123456789101112131415161718192021222324252627282930
  1. cmake_minimum_required(VERSION 2.4.6)
  2. include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
  3. # Set the build type. Options are:
  4. # Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
  5. # Debug : w/ debug symbols, w/o optimization
  6. # Release : w/o debug symbols, w/ optimization
  7. # RelWithDebInfo : w/ debug symbols, w/ optimization
  8. # MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
  9. #set(ROS_BUILD_TYPE RelWithDebInfo)
  10. rosbuild_init()
  11. #set the default path for built executables to the "bin" directory
  12. set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
  13. #set the default path for built libraries to the "lib" directory
  14. set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
  15. #uncomment if you have defined messages
  16. #rosbuild_genmsg()
  17. #uncomment if you have defined services
  18. #rosbuild_gensrv()
  19. #common commands for building c++ executables and libraries
  20. #rosbuild_add_library(${PROJECT_NAME} src/example.cpp)
  21. #target_link_libraries(${PROJECT_NAME} another_library)
  22. #rosbuild_add_boost_directories()
  23. #rosbuild_link_boost(${PROJECT_NAME} thread)
  24. #rosbuild_add_executable(example examples/example.cpp)
  25. #target_link_libraries(example ${PROJECT_NAME})