Skip to content

Commit 8794a00

Browse files
anaGradcosmindanielradu19
authored andcommitted
feat(g2d) Add G2D to CMake
Signed-off-by: Ana Grad <[email protected]> Signed-off-by: Cosmin Radu <[email protected]>
1 parent 67f1db3 commit 8794a00

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ target_link_libraries(lvgl PUBLIC ${PKG_CONFIG_LIB} m pthread)
176176
add_executable(lvglsim src/main.c ${LV_LINUX_SRC} ${LV_LINUX_BACKEND_SRC})
177177
target_link_libraries(lvglsim lvgl_linux lvgl)
178178

179+
if (CONFIG_LV_USE_DRAW_G2D)
180+
target_link_libraries(lvglsim g2d)
181+
endif()
182+
179183
# Install the lvgl_linux library and its headers
180184
install(DIRECTORY src/lib/
181185
DESTINATION include/lvgl

0 commit comments

Comments
 (0)