how to use lvgl with new Mbed CMake build system?
I have used lvgl and Mbed already, but with the older python script based build system. Now Mbed is using also CMake as build system and I want to use this.
I have added the lvgl subdir to my CMakelist.txt and added the lv_conf.h:
in lv_conf.h I have disabled the examples:
#define LV_BUILD_EXAMPLES 0
the build starts and compiles the lvgl/src without errors. But then the examples are compiled and throw errors:
[9/116] Building C object lvgl/CMakeFiles/lvgl_examples.dir/examples/assets/img_star.c.obj FAILED: lvgl/CMakeFiles/lvgl_examples.dir/examples/assets/img_star.c.obj "C:\PROGRA~2\GNU Arm Embedded Toolchain\10 2020-q4-major\bin\arm-none-eabi-gcc.exe" @lvgl\CMakeFiles\lvgl_examples.dir\examples\assets\img_star.c.obj.rsp -MD -MT lvgl/CMakeFiles/lvgl_examples.dir/examples/assets/img_star.c.obj -MF lvgl\CMakeFiles\lvgl_examples.dir\examples\assets\img_star.c.obj.d -o lvgl/CMakeFiles/lvgl_examples.dir/examples/assets/img_star.c.obj -c D:/Projects/Sn/LocalGit/Mbed6-Projects/lvgl8-ST7735/lvgl/examples/assets/img_star.c D:/Projects/Sn/LocalGit/Mbed6-Projects/lvgl8-ST7735/lvgl/examples/assets/img_star.c:4:10: fatal error: lvgl/lvgl.h: No such file or directory 4 | #include "lvgl/lvgl.h" | ^~~~~~~~~~~~~ compilation terminated.
building the examples should be optional, how can this be set in the cmake configuration?
lvgl/lvgl.h is not relative to the examples dir, maybe it can be fixed also by setting the include search path, how is this set in cmake?