mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
apps/system/microros: wire libmicroros.a into LDLIBS and CFLAGS.
When CONFIG_SYSTEM_MICROROS=y, add the prebuilt libmicroros.a to LDLIBS and the colcon-installed include/ tree to CFLAGS/CXXFLAGS so that any application in nuttx-apps can include micro-ROS headers and link against the library without extra flags. Signed-off-by: Arjav Patel <arjav1528@gmail.com>
This commit is contained in:
parent
b1a4d3fcd5
commit
cb316ec165
1 changed files with 9 additions and 0 deletions
|
|
@ -19,3 +19,12 @@
|
|||
# under the License.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
ifneq ($(CONFIG_SYSTEM_MICROROS),)
|
||||
CONFIGURED_APPS += $(APPDIR)/system/microros
|
||||
|
||||
CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/system/microros/include
|
||||
CXXFLAGS += ${INCDIR_PREFIX}$(APPDIR)/system/microros/include
|
||||
|
||||
LDLIBS += $(APPDIR)/system/microros/libmicroros.a
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue