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
+21 -15
View File
@@ -31,19 +31,25 @@
#
############################################################################
px4_add_module(
MODULE modules__px4iofirmware
SRCS
../systemlib/hx_stream.c
../systemlib/perf_counter.c
../systemlib/pwm_limit/pwm_limit.c
adc.c
controls.c
mixer.cpp
px4io.c
registers.c
safety.c
serial.c
DEPENDS
platforms__common
add_library(px4iofirmware
hx_stream.c
../systemlib/pwm_limit/pwm_limit.c
adc.c
controls.c
mixer.cpp
px4io.c
registers.c
safety.c
serial.c
)
set_property(GLOBAL APPEND PROPERTY PX4_MODULE_LIBRARIES px4iofirmware)
target_link_libraries(px4iofirmware
PUBLIC
nuttx_apps
nuttx_arch
nuttx_c
mixer
rc
perf
)