lvgl/cmake: export lvgl header

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Xu Xingliang 2024-05-16 21:26:02 +08:00 committed by Xiang Xiao
parent 5165ad8422
commit 9bffd840b9

View File

@ -114,6 +114,9 @@ if(CONFIG_GRAPHICS_LVGL)
nuttx_add_dependencies(TARGET lvgl DEPENDS turbojpeg-static)
endif()
# allow to include via lvgl/lvgl.h
target_include_directories(lvgl PUBLIC ${CMAKE_CURRENT_LIST_DIR})
set_property(
TARGET nuttx
APPEND
PROPERTY NUTTX_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR}
${CMAKE_CURRENT_LIST_DIR}/lvgl)
endif()