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
+1 -2
View File
@@ -38,6 +38,5 @@ px4_add_module(
SRCS
bst.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -40,6 +40,5 @@ px4_add_module(
sPort_data.cpp
frsky_telemetry.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+5 -10
View File
@@ -30,16 +30,11 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
list(APPEND MODULE_CFLAGS -Wframe-larger-than=1100)
px4_add_module(
MODULE drivers__hott
COMPILE_FLAGS
SRCS
messages.cpp
comms.cpp
DEPENDS
platforms__common
)
px4_add_library(drivers__hott
messages.cpp
comms.cpp
)
add_subdirectory(hott_sensors)
add_subdirectory(hott_telemetry)
@@ -37,6 +37,5 @@ px4_add_module(
SRCS
hott_sensors.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -37,6 +37,5 @@ px4_add_module(
SRCS
hott_telemetry.cpp
DEPENDS
platforms__common
drivers__hott
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -54,7 +54,7 @@
#include <sys/ioctl.h>
#include <unistd.h>
#include <systemlib/err.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/systemlib.h>
#include "../comms.h"
@@ -40,5 +40,4 @@ px4_add_module(
IridiumSBD.cpp
iridiumsbd_params.c
DEPENDS
platforms__common
)
@@ -46,7 +46,7 @@
#include <systemlib/err.h>
#include <systemlib/systemlib.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include "drivers/drv_iridiumsbd.h"
@@ -1,4 +1,4 @@
#include <systemlib/param/param.h>
#include <parameters/param.h>
/**
* Satellite radio read interval. Only required to be nonzero if data is not sent using a ring call.