SHARE
TWEET

Untitled

a guest Sep 21st, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(maze_controller)
  3.  
  4. add_compile_options(-std=c++11)
  5.  
  6. find_package(catkin REQUIRED COMPONENTS
  7.   message_generation
  8.   roscpp
  9.   std_msgs
  10. )
  11.  
  12. add_service_files(
  13.         FILES
  14.         movement.srv
  15. )
  16.  
  17. generate_messages(
  18.         DEPENDENCIES
  19.         std_msgs
  20. )
  21.  
  22. catkin_package(
  23.   INCLUDE_DIRS include
  24.   LIBRARIES maze_controller
  25.   CATKIN_DEPENDS roscpp std_msgs message_runtime
  26. )
  27.  
  28. include_directories(
  29.   include
  30.   ${catkin_INCLUDE_DIRS}
  31. )
  32.  
  33. add_library(${PROJECT_NAME} src/virtual_controller.cpp src/real_controller.cpp)
  34. target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES})
  35.  
  36. add_executable(${PROJECT_NAME}_test_sim src/virtual_controller_test.cpp)
  37. target_link_libraries(${PROJECT_NAME}_test_sim ${PROJECT_NAME})
  38.  
  39. add_executable(${PROJECT_NAME}_test src/real_controller_test.cpp)
  40. target_link_libraries(${PROJECT_NAME}_test ${PROJECT_NAME})
  41.  
  42. ## Mark executables and/or libraries for installation
  43. install(TARGETS ${PROJECT_NAME}
  44.         ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  45.         LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  46.         RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  47.         )
  48.  
  49. ## Mark cpp header files for installation
  50. install(DIRECTORY include/${PROJECT_NAME}/
  51.         DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
  52.         FILES_MATCHING PATTERN "*.h"
  53.         PATTERN ".svn" EXCLUDE
  54.         )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top