Skip to content

Commit

Permalink
wamr: add iwasm include directory to nuttx target
Browse files Browse the repository at this point in the history
This patch allow from other module that outside
WAMR directory include `wasm_export.h` to use WAMR as library.

Signed-off-by: Huang Qi <[email protected]>
  • Loading branch information
no1wudi authored and xiaoxiang781216 committed Nov 3, 2024
1 parent 7bab630 commit 3799e09
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions interpreters/wamr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ if(CONFIG_INTERPRETERS_WAMR)

nuttx_add_library(wamr STATIC)

set_property(
TARGET nuttx
APPEND
PROPERTY NUTTX_INCLUDE_DIRECTORIES
${CMAKE_CURRENT_SOURCE_DIR}/wamr/core/iwasm/include)

include(${WAMR_DIR}/product-mini/platforms/nuttx/CMakeLists.txt)
target_sources(wamr PRIVATE ${WAMR_SOURCES})
target_compile_options(wamr PRIVATE ${WAMR_CFLAGS})
Expand Down

0 comments on commit 3799e09

Please sign in to comment.