mirror of
https://github.com/No-Chicken/Power-Pico.git
synced 2026-04-03 13:02:36 +08:00
update cmake
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(lvgl_module)
|
||||
|
||||
# 把 porting 目录下的 .c 文件也抓取进来一起编译
|
||||
file(GLOB_RECURSE LVGL_SRC "src/*.c" "porting/*.c")
|
||||
|
||||
add_library(lvgl STATIC ${LVGL_SRC})
|
||||
|
||||
# 把 porting 目录的路径暴露给外部
|
||||
target_include_directories(lvgl PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/porting
|
||||
)
|
||||
|
||||
# 因为 LVGL 的 porting 层需要调用屏幕驱动,所以把 bsp 也链接给它
|
||||
target_link_libraries(lvgl PRIVATE sys_config bsp)
|
||||
Reference in New Issue
Block a user