Skip to content

Commit 3799e09

Browse files
no1wudixiaoxiang781216
authored andcommitted
wamr: add iwasm include directory to nuttx target
This patch allow from other module that outside WAMR directory include `wasm_export.h` to use WAMR as library. Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
1 parent 7bab630 commit 3799e09

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

interpreters/wamr/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ if(CONFIG_INTERPRETERS_WAMR)
4747

4848
nuttx_add_library(wamr STATIC)
4949

50+
set_property(
51+
TARGET nuttx
52+
APPEND
53+
PROPERTY NUTTX_INCLUDE_DIRECTORIES
54+
${CMAKE_CURRENT_SOURCE_DIR}/wamr/core/iwasm/include)
55+
5056
include(${WAMR_DIR}/product-mini/platforms/nuttx/CMakeLists.txt)
5157
target_sources(wamr PRIVATE ${WAMR_SOURCES})
5258
target_compile_options(wamr PRIVATE ${WAMR_CFLAGS})

0 commit comments

Comments
 (0)