arch/sim: fix X11 compile failed

This commit is contained in:
Benign X 2024-01-27 13:40:43 +08:00 committed by Xiang Xiao
parent 26ffb1f568
commit 8ba74d06c6

View File

@ -166,7 +166,12 @@ endif()
if(CONFIG_SIM_X11FB)
list(APPEND HOSTSRCS sim_x11framebuffer.c)
list(APPEND STDLIBS X11 Xext)
find_package(X11 REQUIRED)
if(X11_FOUND)
target_include_directories(nuttx PRIVATE ${X11_INCLUDE_DIR})
target_link_libraries(nuttx PRIVATE ${X11_LIBRARIES})
endif()
if(CONFIG_SIM_TOUCHSCREEN)
list(APPEND SRCS sim_touchscreen.c)