|
@@ -53,11 +53,10 @@ add_message_files(
|
|
|
)
|
|
|
|
|
|
## Generate services in the 'srv' folder
|
|
|
-# add_service_files(
|
|
|
-# FILES
|
|
|
-# Service1.srv
|
|
|
-# Service2.srv
|
|
|
-# )
|
|
|
+add_service_files(
|
|
|
+ FILES
|
|
|
+ mySrv.srv
|
|
|
+)
|
|
|
|
|
|
## Generate actions in the 'action' folder
|
|
|
# add_action_files(
|
|
@@ -136,6 +135,10 @@ include_directories(
|
|
|
add_executable(publish_node src/topic_publisher.cpp)
|
|
|
add_executable(subscribe_node src/topic_subscriber.cpp)
|
|
|
|
|
|
+add_executable(server_node src/server_node.cpp)
|
|
|
+add_executable(client_node src/client_node.cpp)
|
|
|
+
|
|
|
+add_executable(turtlesim_control_node src/control_turtle.cpp)
|
|
|
## Rename C++ executable without prefix
|
|
|
## The above recommended prefix causes long target names, the following renames the
|
|
|
## target back to the shorter version for ease of user use
|
|
@@ -144,8 +147,11 @@ add_executable(subscribe_node src/topic_subscriber.cpp)
|
|
|
|
|
|
## Add cmake target dependencies of the executable
|
|
|
## same as for the library above
|
|
|
-# add_dependencies(${PROJECT_NAME}_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
|
|
+add_dependencies(publish_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
|
|
+add_dependencies(subscribe_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
|
|
|
|
|
+add_dependencies(server_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
|
|
+add_dependencies(client_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
|
|
## Specify libraries to link a library or executable target against
|
|
|
target_link_libraries(publish_node
|
|
|
${catkin_LIBRARIES}
|
|
@@ -154,6 +160,16 @@ target_link_libraries(subscribe_node
|
|
|
${catkin_LIBRARIES}
|
|
|
)
|
|
|
|
|
|
+target_link_libraries(server_node
|
|
|
+ ${catkin_LIBRARIES}
|
|
|
+)
|
|
|
+target_link_libraries(client_node
|
|
|
+ ${catkin_LIBRARIES}
|
|
|
+)
|
|
|
+
|
|
|
+target_link_libraries(turtlesim_control_node
|
|
|
+ ${catkin_LIBRARIES}
|
|
|
+)
|
|
|
#############
|
|
|
## Install ##
|
|
|
#############
|