mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 02:31:36 +08:00
cmake remove circular linking and reorganize
- px4_add_module now requires MAIN - px4_add_library doesn't automatically link
This commit is contained in:
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user