Skip to content

Commit d4becc8

Browse files
xuxin930xiaoxiang781216
authored andcommitted
cmake:bugfix export uORB headers fix compile error
Signed-off-by: xuxin19 <[email protected]>
1 parent 0fdab21 commit d4becc8

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

crypto/mbedtls/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,12 @@ if(CONFIG_CRYPTO_MBEDTLS)
7373
# Library Configuration
7474
# ############################################################################
7575

76+
set_property(
77+
TARGET nuttx
78+
APPEND
79+
PROPERTY NUTTX_INCLUDE_DIRECTORIES ${INCDIR})
80+
7681
nuttx_add_library(mbedtls STATIC)
77-
nuttx_export_header(TARGET mbedtls INCLUDE_DIRECTORIES ${MBEDTLS_DIR}/include)
7882
target_sources(mbedtls PRIVATE ${CSRCS})
7983
target_include_directories(mbedtls PRIVATE ${INCDIR})
8084
target_compile_definitions(mbedtls PRIVATE unix)

system/uorb/CMakeLists.txt

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,45 @@
2020

2121
if(CONFIG_UORB)
2222

23+
set_property(
24+
TARGET nuttx
25+
APPEND
26+
PROPERTY NUTTX_INCLUDE_DIRECTORIES ${NUTTX_APPS_DIR}/system/uorb)
27+
2328
nuttx_add_library(uorb STATIC)
2429

2530
file(GLOB_RECURSE CSRCS "sensor/*.c")
2631
list(APPEND CSRCS uORB/uORB.c)
2732

2833
if(CONFIG_UORB_LISTENER)
29-
nuttx_add_application(NAME uorb_listener SRCS listener.c DEPENDS uorb)
34+
nuttx_add_application(
35+
NAME
36+
uorb_listener
37+
PRIORITY
38+
${CONFIG_UORB_PRIORITY}
39+
STACKSIZE
40+
${CONFIG_UORB_STACKSIZE}
41+
MODULE
42+
${CONFIG_UORB}
43+
SRCS
44+
listener.c
45+
DEPENDS
46+
uorb)
3047
endif()
3148

3249
if(CONFIG_UORB_TEST)
3350
nuttx_add_application(
3451
NAME
3552
uorb_unit_test
53+
PRIORITY
54+
${CONFIG_UORB_PRIORITY}
55+
STACKSIZE
56+
${CONFIG_UORB_STACKSIZE}
57+
MODULE
58+
${CONFIG_UORB}
3659
SRCS
37-
test/utility.c
3860
test/unit_test.c
61+
test/utility.c
3962
DEPENDS
4063
uorb)
4164
endif()

0 commit comments

Comments
 (0)