mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 00:23:34 +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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user