|
| 1 | +cmake_minimum_required(VERSION 2.8.3) |
| 2 | +project(heater_msgs) |
| 3 | + |
| 4 | +## Find catkin macros and libraries |
| 5 | +## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz) |
| 6 | +## is used, also find other catkin packages |
| 7 | +find_package(catkin REQUIRED COMPONENTS message_generation std_msgs sensor_msgs) |
| 8 | + |
| 9 | +## System dependencies are found with CMake's conventions |
| 10 | +# find_package(Boost REQUIRED COMPONENTS system) |
| 11 | + |
| 12 | + |
| 13 | +## Uncomment this if the package has a setup.py. This macro ensures |
| 14 | +## modules and global scripts declared therein get installed |
| 15 | +## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html |
| 16 | +#catkin_python_setup() |
| 17 | + |
| 18 | +####################################### |
| 19 | +## Declare ROS messages and services ## |
| 20 | +####################################### |
| 21 | + |
| 22 | +## Generate messages in the 'msg' folder |
| 23 | +add_message_files( |
| 24 | + DIRECTORY |
| 25 | + msg |
| 26 | + FILES |
| 27 | + HeatingTemperatureSlot.msg |
| 28 | + HeatingPilotAction.msg |
| 29 | + HeatingPilotStateData.msg |
| 30 | + HeatingStateData.msg |
| 31 | + LogHeatingStateData.msg |
| 32 | + SensorTemperatureStateData.msg |
| 33 | +) |
| 34 | + |
| 35 | +## Generate services in the 'srv' folder |
| 36 | +add_service_files( |
| 37 | + DIRECTORY |
| 38 | + srv |
| 39 | + FILES |
| 40 | + HeatingAddTimeSlot.srv |
| 41 | + HeatingGetTimeSlots.srv |
| 42 | + HeatingRemoveTimeSlot.srv |
| 43 | + HeatingRemoveTimeSlots.srv |
| 44 | + HeatingUpdatePid.srv |
| 45 | +) |
| 46 | + |
| 47 | +## Generate added messages and services with any dependencies listed here |
| 48 | +generate_messages( |
| 49 | + DEPENDENCIES |
| 50 | + std_msgs |
| 51 | + sensor_msgs |
| 52 | +) |
| 53 | + |
| 54 | +################################### |
| 55 | +## catkin specific configuration ## |
| 56 | +################################### |
| 57 | +## The catkin_package macro generates cmake config files for your package |
| 58 | +## Declare things to be passed to dependent projects |
| 59 | +## INCLUDE_DIRS: uncomment this if you package contains header files |
| 60 | +## LIBRARIES: libraries you create in this project that dependent projects also need |
| 61 | +## CATKIN_DEPENDS: catkin_packages dependent projects also need |
| 62 | +## DEPENDS: system dependencies of this project that dependent projects also need |
| 63 | +catkin_package( |
| 64 | +# INCLUDE_DIRS include |
| 65 | +# LIBRARIES media_msgs |
| 66 | + CATKIN_DEPENDS message_runtime std_msgs sensor_msgs |
| 67 | +# roscpp rospy std_msgs |
| 68 | +# DEPENDS system_lib |
| 69 | +) |
| 70 | + |
| 71 | +########### |
| 72 | +## Build ## |
| 73 | +########### |
| 74 | + |
| 75 | +## Specify additional locations of header files |
| 76 | +## Your package locations should be listed before other locations |
| 77 | +# include_directories(include) |
| 78 | +include_directories( |
| 79 | + ${catkin_INCLUDE_DIRS} |
| 80 | +) |
| 81 | + |
| 82 | +## Declare a cpp library |
| 83 | +# add_library(media_msgs |
| 84 | +# src/${PROJECT_NAME}/media_msgs.cpp |
| 85 | +# ) |
| 86 | + |
| 87 | +## Declare a cpp executable |
| 88 | +# add_executable(media_msgs_node src/media_msgs_node.cpp) |
| 89 | + |
| 90 | +## Add cmake target dependencies of the executable/library |
| 91 | +## as an example, message headers may need to be generated before nodes |
| 92 | +#add_dependencies(media_msgs_node media_msgs_generate_messages_cpp) |
| 93 | + |
| 94 | +## Specify libraries to link a library or executable target against |
| 95 | +# target_link_libraries(media_msgs_node |
| 96 | +# ${catkin_LIBRARIES} |
| 97 | +# ) |
| 98 | + |
| 99 | +############# |
| 100 | +## Install ## |
| 101 | +############# |
| 102 | + |
| 103 | +# all install targets should use catkin DESTINATION variables |
| 104 | +# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html |
| 105 | + |
| 106 | +## Mark executable scripts (Python etc.) for installation |
| 107 | +## in contrast to setup.py, you can choose the destination |
| 108 | +#install(PROGRAMS |
| 109 | +# scripts/my_python_script |
| 110 | +# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} |
| 111 | +#) |
| 112 | + |
| 113 | +## Mark executables and/or libraries for installation |
| 114 | +# install(TARGETS media_msgs media_msgs_node |
| 115 | +# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} |
| 116 | +# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} |
| 117 | +# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} |
| 118 | +# ) |
| 119 | + |
| 120 | +## Mark cpp header files for installation |
| 121 | +# install(DIRECTORY include/${PROJECT_NAME}/ |
| 122 | +# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} |
| 123 | +# FILES_MATCHING PATTERN "*.h" |
| 124 | +# PATTERN ".svn" EXCLUDE |
| 125 | +# ) |
| 126 | + |
| 127 | +## Mark other files for installation (e.g. launch and bag files, etc.) |
| 128 | +# install(FILES |
| 129 | +# # myfile1 |
| 130 | +# # myfile2 |
| 131 | +# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} |
| 132 | +# ) |
| 133 | + |
| 134 | +############# |
| 135 | +## Testing ## |
| 136 | +############# |
| 137 | + |
| 138 | +## Add gtest based cpp test target and link libraries |
| 139 | +# catkin_add_gtest(${PROJECT_NAME}-test test/test_media_msgs.cpp) |
| 140 | +# if(TARGET ${PROJECT_NAME}-test) |
| 141 | +# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME}) |
| 142 | +# endif() |
| 143 | + |
| 144 | +## Add folders to be run by python nosetests |
| 145 | +# catkin_add_nosetests(test) |
0 commit comments