mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 05:50: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:
@@ -87,8 +87,10 @@ px4_add_module(
|
||||
-Wno-missing-declarations
|
||||
-Wno-double-promotion
|
||||
-Wno-unknown-warning-option
|
||||
SRCS ${srcs}
|
||||
SRCS
|
||||
${srcs}
|
||||
DEPENDS
|
||||
platforms__common
|
||||
modules__mc_pos_control__mc_pos_control_tests
|
||||
git_ecl
|
||||
ecl
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
#include <math.h>
|
||||
|
||||
#include <systemlib/err.h>
|
||||
#include <systemlib/bson/tinybson.h>
|
||||
#include <parameters/tinybson/tinybson.h>
|
||||
|
||||
#include "tests_main.h"
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stddef.h>
|
||||
#include <systemlib/err.h>
|
||||
#include <systemlib/perf_counter.h>
|
||||
#include <perf/perf_counter.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
#include <stddef.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <systemlib/perf_counter.h>
|
||||
#include <perf/perf_counter.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <px4_getopt.h>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
#include <stddef.h>
|
||||
#include <systemlib/err.h>
|
||||
#include <systemlib/systemlib.h>
|
||||
#include <systemlib/perf_counter.h>
|
||||
#include <perf/perf_counter.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include <px4_defines.h>
|
||||
#include <stdio.h>
|
||||
#include "systemlib/err.h"
|
||||
#include "systemlib/param/param.h"
|
||||
#include <parameters/param.h>
|
||||
#include "tests_main.h"
|
||||
|
||||
#define PARAM_MAGIC1 12345678
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include <px4_config.h>
|
||||
#include <px4_posix.h>
|
||||
|
||||
#include <systemlib/perf_counter.h>
|
||||
#include <perf/perf_counter.h>
|
||||
|
||||
#include "tests_main.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user