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
@@ -54,6 +54,5 @@ px4_add_module(
mpu9x50_main.cpp
mpu9x50_params.c
DEPENDS
platforms__common
)
target_link_libraries(platforms__qurt__fc_addon__mpu_spi PRIVATE mpu9x50)
@@ -38,7 +38,7 @@
*/
#include <px4_config.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
/**
* Low pass filter frequency for Gyro
@@ -38,7 +38,7 @@
*/
#include <px4_config.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
/**
* RC receiver type
@@ -54,6 +54,5 @@ px4_add_module(
uart_esc_main.cpp
uart_esc_params.c
DEPENDS
platforms__common
)
target_link_libraries(platforms__qurt__fc_addon__uart_esc PRIVATE uart_esc)
@@ -48,7 +48,7 @@
#include <drivers/drv_mixer.h>
#include <lib/mixer/mixer.h>
#include <lib/mixer/mixer_multirotor_normalized.generated.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#ifdef __cplusplus
extern "C" {
@@ -37,7 +37,7 @@
* Parameters defined for the uart esc driver
*/
#include <px4_config.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
/**
* ESC model
@@ -38,6 +38,4 @@ px4_add_module(
hello_start_qurt.cpp
hello_example.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -37,6 +37,4 @@ px4_add_module(
muorb_test_start_qurt.cpp
muorb_test_example.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :