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
-2
View File
@@ -38,6 +38,4 @@ px4_add_module(
SRCS
adis16448.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -1
View File
@@ -60,7 +60,7 @@
#include <unistd.h>
#include <getopt.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
#include <systemlib/conversions.h>
+1 -2
View File
@@ -37,6 +37,5 @@ px4_add_module(
SRCS
bma180.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -1
View File
@@ -54,7 +54,7 @@
#include <math.h>
#include <unistd.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
#include <nuttx/arch.h>
#include <nuttx/wqueue.h>
+1 -2
View File
@@ -40,6 +40,5 @@ px4_add_module(
bmi055_gyro.cpp
bmi055_main.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -1
View File
@@ -18,7 +18,7 @@
#include <unistd.h>
#include <getopt.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
#include <systemlib/conversions.h>
+1 -2
View File
@@ -40,6 +40,5 @@ px4_add_module(
bmi160_gyro.cpp
bmi160_main.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -1
View File
@@ -18,7 +18,7 @@
#include <unistd.h>
#include <getopt.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
#include <systemlib/conversions.h>
@@ -38,6 +38,4 @@ px4_add_module(
SRCS
fxas21002c.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -1
View File
@@ -58,7 +58,7 @@
#include <px4_log.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <nuttx/arch.h>
#include <nuttx/clock.h>
@@ -38,6 +38,4 @@ px4_add_module(
SRCS
fxos8701cq.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -1
View File
@@ -59,7 +59,7 @@
#include <px4_log.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <nuttx/arch.h>
#include <nuttx/clock.h>
+1 -2
View File
@@ -38,6 +38,5 @@ px4_add_module(
SRCS
l3gd20.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -1
View File
@@ -57,7 +57,7 @@
#include <unistd.h>
#include <getopt.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
#include <nuttx/arch.h>
+1 -2
View File
@@ -38,6 +38,5 @@ px4_add_module(
SRCS
lsm303d.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -1
View File
@@ -56,7 +56,7 @@
#include <unistd.h>
#include <getopt.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
#include <nuttx/arch.h>
+1 -2
View File
@@ -40,6 +40,5 @@ px4_add_module(
mpu6000_i2c.cpp
mpu6000_spi.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -1
View File
@@ -73,7 +73,7 @@
#include <unistd.h>
#include <getopt.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
#include <systemlib/conversions.h>
#include <systemlib/px4_macros.h>
+1 -2
View File
@@ -44,6 +44,5 @@ px4_add_module(
mag.cpp
mag_i2c.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -1
View File
@@ -51,7 +51,7 @@
#include <errno.h>
#include <stdio.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <board_config.h>
#include <drivers/drv_hrt.h>
+1 -1
View File
@@ -51,7 +51,7 @@
#include <errno.h>
#include <stdio.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <board_config.h>
#include <drivers/drv_hrt.h>
+1 -1
View File
@@ -35,7 +35,7 @@
#include "drivers/device/ringbuffer.h" // ringbuffer::RingBuffer
#include "drivers/drv_mag.h" // mag_calibration_s
#include "systemlib/perf_counter.h" // perf_counter_t
#include <perf/perf_counter.h>
/* in 16-bit sampling mode the mag resolution is 1.5 milli Gauss per bit */
+1 -1
View File
@@ -53,7 +53,7 @@
#include <stdio.h>
#include <getopt.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
#include <systemlib/conversions.h>
+1 -1
View File
@@ -59,7 +59,7 @@
#include <unistd.h>
#include <getopt.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
#include <systemlib/conversions.h>
#include <systemlib/px4_macros.h>
+1 -1
View File
@@ -33,7 +33,7 @@
#include <stdint.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/conversions.h>
#include <nuttx/wqueue.h>