mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 18:33: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:
@@ -34,14 +34,11 @@
|
||||
px4_add_module(
|
||||
MODULE drivers__navio_rgbled
|
||||
MAIN navio_rgbled
|
||||
COMPILE_FLAGS
|
||||
SRCS
|
||||
navio_rgbled.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
drivers__linux_gpio
|
||||
lib__led
|
||||
led
|
||||
)
|
||||
|
||||
#add_subdirectory(test)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -40,6 +40,5 @@ add_executable(navio_rgbled_test
|
||||
target_link_libraries(navio_rgbled_test
|
||||
drivers__navio_rgbled
|
||||
drivers__navio_gpio
|
||||
platforms__posix__px4_layer
|
||||
df_driver_framework
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user