Skip to content
Snippets Groups Projects
Commit 39b114c6 authored by Sebastian Ebert's avatar Sebastian Ebert
Browse files

update cmake to include exported targets

parent 52c02fb3
No related branches found
No related tags found
No related merge requests found
...@@ -42,8 +42,9 @@ target_link_libraries(listener ${catkin_LIBRARIES}) ...@@ -42,8 +42,9 @@ target_link_libraries(listener ${catkin_LIBRARIES})
add_executable(add_two_ints_server src/add_two_ints_server.cpp) add_executable(add_two_ints_server src/add_two_ints_server.cpp)
target_link_libraries(add_two_ints_server ${catkin_LIBRARIES}) target_link_libraries(add_two_ints_server ${catkin_LIBRARIES})
#add_dependencies(add_two_ints_server tutorial_ros_pub_sub_generate_gencpp)
add_executable(add_two_ints_client src/add_two_ints_client.cpp) add_executable(add_two_ints_client src/add_two_ints_client.cpp)
target_link_libraries(add_two_ints_client ${catkin_LIBRARIES}) target_link_libraries(add_two_ints_client ${catkin_LIBRARIES})
#add_dependencies(add_two_ints_client tutorial_ros_pub_sub_generate_gencpp)
add_dependencies(add_two_ints_server ${tutorial_ros_pub_sub_EXPORTED_TARGETS})
add_dependencies(add_two_ints_client ${tutorial_ros_pub_sub_EXPORTED_TARGETS})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment