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
+1 -2
View File
@@ -38,6 +38,5 @@ px4_add_module(
SRCS
bottle_drop.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -1
View File
@@ -61,7 +61,7 @@
#include <uORB/topics/wind_estimate.h>
#include <uORB/topics/parameter_update.h>
#include <uORB/topics/vehicle_global_position.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include <systemlib/err.h>
#include <systemlib/mavlink_log.h>
#include <lib/ecl/geo/geo.h>
@@ -39,7 +39,7 @@
*/
#include <px4_config.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
/**
* Ground drag property
@@ -38,6 +38,4 @@ px4_add_module(
SRCS
main.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+2 -2
View File
@@ -52,8 +52,8 @@
#include <px4_config.h>
#include <px4_tasks.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 <systemlib/pid/pid.h>
#include <systemlib/systemlib.h>
#include <uORB/topics/actuator_controls.h>
+1 -1
View File
@@ -38,7 +38,7 @@
* Definition of parameters for fixedwing example
*/
#include <systemlib/param/param.h>
#include <parameters/param.h>
struct params {
float hdng_p;
-2
View File
@@ -37,6 +37,4 @@ px4_add_module(
SRCS
hwtest.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -37,6 +37,4 @@ px4_add_module(
SRCS
matlab_csv_serial.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -58,7 +58,7 @@
#include <uORB/uORB.h>
#include <drivers/drv_accel.h>
#include <drivers/drv_gyro.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/systemlib.h>
#include <systemlib/err.h>
#include <poll.h>
-2
View File
@@ -39,6 +39,4 @@ px4_add_module(
publisher_start_nuttx.cpp
publisher_example.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -37,6 +37,4 @@ px4_add_module(
SRCS
px4_mavlink_debug.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -37,6 +37,4 @@ px4_add_module(
SRCS
px4_simple_app.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -38,6 +38,4 @@ px4_add_module(
SRCS
main.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+2 -2
View File
@@ -61,10 +61,10 @@
#include <uORB/topics/actuator_controls.h>
#include <uORB/topics/vehicle_global_position.h>
#include <uORB/topics/parameter_update.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include <systemlib/pid/pid.h>
#include <lib/ecl/geo/geo.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
#include <matrix/math.hpp>
+1 -1
View File
@@ -38,6 +38,6 @@
* Definition of parameters for fixedwing example
*/
#include <systemlib/param/param.h>
#include <parameters/param.h>
+1 -2
View File
@@ -40,6 +40,5 @@ px4_add_module(
segway_main.cpp
BlockSegwayController.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -1
View File
@@ -1,4 +1,4 @@
#include <systemlib/param/param.h>
#include <parameters/param.h>
// 16 is max name length
PARAM_DEFINE_FLOAT(SEG_TH2V_P, 10.0f); // pitch to voltage
+1 -1
View File
@@ -45,7 +45,7 @@
#include <stdlib.h>
#include <string.h>
#include <systemlib/systemlib.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include <systemlib/err.h>
#include <drivers/drv_hrt.h>
#include <math.h>
-2
View File
@@ -40,6 +40,4 @@ px4_add_module(
subscriber_example.cpp
subscriber_params.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -37,6 +37,4 @@ px4_add_module(
SRCS
uuv_example_app.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -51,9 +51,9 @@
#include <math.h>
// system libraries
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include <systemlib/err.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/systemlib.h>
#include <systemlib/circuit_breaker.h>
// internal libraries