mirror of
https://github.com/espressif/openthread.git
synced 2026-08-12 13:47:47 +00:00
[cmake] added ncp vendor hook include directories for .hpp files from src (#5275)
Added include directories to enable including .hpp ncp files outside src directory, what is needed for vendor hooks concept. Signed-off-by: Kamil Kasperczyk <[email protected]>
This commit is contained in:
@@ -84,7 +84,7 @@ set(COMMON_SOURCES
|
||||
set(OT_NCP_VENDOR_HOOK_SOURCE "" CACHE STRING "set vendor hook source file for NCP")
|
||||
if(OT_NCP_VENDOR_HOOK_SOURCE)
|
||||
target_compile_definitions(ot-config INTERFACE "OPENTHREAD_ENABLE_NCP_VENDOR_HOOK=1")
|
||||
list(APPEND COMMON_SOURCES ${OT_NCP_VENDOR_HOOK_SOURCE})
|
||||
list(APPEND COMMON_SOURCES ${OT_NCP_VENDOR_HOOK_SOURCE_DIR}${OT_NCP_VENDOR_HOOK_SOURCE})
|
||||
endif()
|
||||
|
||||
target_include_directories(openthread-ncp-ftd PUBLIC ${OT_PUBLIC_INCLUDES} PRIVATE ${COMMON_INCLUDES})
|
||||
@@ -93,6 +93,8 @@ target_include_directories(openthread-rcp PUBLIC ${OT_PUBLIC_INCLUDES} PRIVATE $
|
||||
|
||||
target_sources(openthread-ncp-ftd PRIVATE ${COMMON_SOURCES})
|
||||
target_sources(openthread-ncp-mtd PRIVATE ${COMMON_SOURCES})
|
||||
target_include_directories(openthread-ncp-ftd PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_include_directories(openthread-ncp-mtd PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
target_sources(openthread-rcp PRIVATE
|
||||
changed_props_set.cpp
|
||||
|
||||
Reference in New Issue
Block a user