adding necessary plugin depends, cleaning up cmakelists