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-29 21:48:54 -04:00
parent a8bc3d187f
commit ea3acb7121
576 changed files with 1406 additions and 2014 deletions
@@ -38,6 +38,5 @@ px4_add_module(
SRCS
ets_airspeed.cpp
DEPENDS
platforms__common
drivers__airspeed
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -44,8 +44,8 @@
#include <systemlib/airspeed.h>
#include <systemlib/err.h>
#include <systemlib/param/param.h>
#include <systemlib/perf_counter.h>
#include <parameters/param.h>
#include <perf/perf_counter.h>
#include <drivers/drv_airspeed.h>
#include <drivers/drv_hrt.h>
@@ -38,6 +38,5 @@ px4_add_module(
SRCS
ms4525_airspeed.cpp
DEPENDS
platforms__common
drivers__airspeed
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -55,8 +55,8 @@
#include <systemlib/airspeed.h>
#include <systemlib/err.h>
#include <systemlib/param/param.h>
#include <systemlib/perf_counter.h>
#include <parameters/param.h>
#include <perf/perf_counter.h>
#include <mathlib/math/filter/LowPassFilter2p.hpp>
@@ -39,6 +39,5 @@ px4_add_module(
MS5525.cpp
MS5525_main.cpp
DEPENDS
platforms__common
drivers__airspeed
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -42,7 +42,7 @@
#include <px4_config.h>
#include <sys/types.h>
#include <systemlib/airspeed.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <uORB/topics/differential_pressure.h>
#include <uORB/uORB.h>
@@ -39,6 +39,5 @@ px4_add_module(
SDP3X.cpp
SDP3X_main.cpp
DEPENDS
platforms__common
drivers__airspeed
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -50,7 +50,7 @@
#include <px4_config.h>
#include <sys/types.h>
#include <systemlib/airspeed.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <uORB/topics/differential_pressure.h>
#include <uORB/uORB.h>