diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-11 10:51:19 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-11 10:51:19 +0100 |
commit | 173b1b2a8bcf2344be92b1f6e5acbc089a43fcab (patch) | |
tree | 63afb74e15312ecf8c60800962895e217c6e634c /CMakeLists.txt | |
parent | a1685ed6d093ec01214e6839ea66f9dd565e55ce (diff) | |
download | px4-firmware-173b1b2a8bcf2344be92b1f6e5acbc089a43fcab.tar.gz px4-firmware-173b1b2a8bcf2344be92b1f6e5acbc089a43fcab.tar.bz2 px4-firmware-173b1b2a8bcf2344be92b1f6e5acbc089a43fcab.zip |
WIP, make class based and extended subscriber/publisher example compile for ros
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e91f2cc37..f206a5aa2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,7 +111,9 @@ target_link_libraries(px4 ) ## Declare a test publisher -add_executable(publisher src/examples/publisher/publisher.cpp) +add_executable(publisher + src/examples/publisher/publisher_main.cpp + src/examples/publisher/publisher_example.cpp) ## Add cmake target dependencies of the executable/library ## as an example, message headers may need to be generated before nodes @@ -124,7 +126,9 @@ target_link_libraries(publisher ) ## Declare a test subscriber -add_executable(subscriber src/examples/subscriber/subscriber.cpp) +add_executable(subscriber + src/examples/subscriber/subscriber_main.cpp + src/examples/subscriber/subscriber_example.cpp) ## Add cmake target dependencies of the executable/library ## as an example, message headers may need to be generated before nodes @@ -136,14 +140,14 @@ target_link_libraries(subscriber px4 ) -add_executable(mc_att_control - src/modules/mc_att_control/mc_att_control_main.cpp - src/moudles/mc_att_control/mc_att_control_base.cpp) -add_dependencies(mc_att_control px4_generate_messages_cpp) -target_link_libraries(mc_att_control - ${catkin_LIBRARIES} - px4 -) +# add_executable(mc_att_control + # src/modules/mc_att_control/mc_att_control_main.cpp + # src/moudles/mc_att_control/mc_att_control_base.cpp) +# add_dependencies(mc_att_control px4_generate_messages_cpp) +# target_link_libraries(mc_att_control + # ${catkin_LIBRARIES} + # px4 +# ) ############# |