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
+3 -5
View File
@@ -30,14 +30,12 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_module(
MODULE drivers__rgbled_pwm
MAIN rgbled_pwm
COMPILE_FLAGS
SRCS
rgbled_pwm.cpp
DEPENDS
platforms__common
lib__led
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
led
)
+1 -1
View File
@@ -56,7 +56,7 @@
#include <nuttx/wqueue.h>
#include <drivers/drv_hrt.h>
#include <systemlib/perf_counter.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
#include <systemlib/systemlib.h>