I have disabled macro LV_BUILD_EXAMPLES in lv_conf.h but still. When i do cmake in build directory and perform make it generates lv_eamples library. I have tried disabling some widgets option also in lv_conf.h and they are also getting compiled for lvgl library. The lv_conf.h is kept parallel with lvgl directory as per documentation. I feel like its not considering lv_conf.h properly. Is there something which I am missing. I have kept color depth 16 in conf.h and it looks like it has considered that property.
I am sorry for wasting time. The path for lv_conf.h was not correct. I found my mistake.
But even after placing it in correct path. The liblvgl_examples.a is getting created