Last active
July 17, 2018 18:04
-
-
Save Tutorgaming/34224c7f5de2f2d8d5012cbb1051d4b9 to your computer and use it in GitHub Desktop.
chatter_subscriber_tutorial's Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8.3) | |
project(chatter_subscriber_tutorial) | |
find_package(catkin REQUIRED COMPONENTS | |
roscpp | |
std_msgs | |
) | |
catkin_package( | |
# INCLUDE_DIRS include | |
# LIBRARIES chatter_subscriber_tutorial | |
# CATKIN_DEPENDS roscpp std_msgs | |
# DEPENDS system_lib | |
) | |
include_directories( | |
# include | |
${catkin_INCLUDE_DIRS} | |
) | |
add_executable(my_publisher src/my_publisher.cpp) | |
add_executable(my_subscriber src/my_subscriber.cpp) | |
add_dependencies(my_publisher ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS}) | |
add_dependencies(my_subscriber ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS}) | |
target_link_libraries(my_publisher | |
${catkin_LIBRARIES} | |
) | |
target_link_libraries(my_subscriber | |
${catkin_LIBRARIES} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment