Sorry for the late reply. But add_custom_target did work but I had to remove the depends on the interface to make it work. This was just a small test sample to make sure whether the required files are getting generated or not. So I can’t comment how it will play in the big picture.