cmake remove circular linking and reorganize

- px4_add_module now requires MAIN
 - px4_add_library doesn't automatically link
This commit is contained in:
Daniel Agar
2018-04-11 15:10:51 -04:00
parent a8bc3d187f
commit ea3acb7121
576 changed files with 1406 additions and 2014 deletions
-2
View File
@@ -89,5 +89,3 @@ px4_add_module(
uavcan
uavcan_stm32_driver
)
target_link_libraries(modules__uavcan uavcan uavcan_stm32_driver)
+1 -1
View File
@@ -47,7 +47,7 @@
#include <uavcan/uavcan.hpp>
#include <uavcan/equipment/esc/RawCommand.hpp>
#include <uavcan/equipment/esc/Status.hpp>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <uORB/topics/esc_status.h>
#include <uORB/topics/actuator_outputs.h>
+1 -1
View File
@@ -42,7 +42,7 @@
#include <uavcan/uavcan.hpp>
#include <uavcan/equipment/hardpoint/Command.hpp>
#include <uavcan/equipment/hardpoint/Status.hpp>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
/**
* @brief The UavcanHardpointController class
+1 -1
View File
@@ -50,7 +50,7 @@
#include <fcntl.h>
#include <systemlib/err.h>
#include <systemlib/systemlib.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include <lib/mixer/mixer.h>
#include <systemlib/board_serial.h>
#include <version/version.h>
+1 -1
View File
@@ -54,7 +54,7 @@
#include <uavcan/protocol/RestartNode.hpp>
#include <drivers/device/device.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <uORB/topics/actuator_controls.h>
#include <uORB/topics/actuator_outputs.h>
+1 -1
View File
@@ -36,7 +36,7 @@
*/
#include <px4_config.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
/**
* UAVCAN mode
+1 -1
View File
@@ -43,7 +43,7 @@
#include <mathlib/mathlib.h>
#include <systemlib/err.h>
#include <systemlib/systemlib.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include <lib/mixer/mixer.h>
#include <systemlib/board_serial.h>
#include <version/version.h>
+1 -1
View File
@@ -37,7 +37,7 @@
#include <uavcan_stm32/uavcan_stm32.hpp>
#include <drivers/device/device.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <uavcan/node/sub_node.hpp>
#include <uavcan/protocol/node_status_monitor.hpp>