Taking care of dependecny layers for qt5-mel and atp

Adding checks while addition of layers qt5-mel and atp

Signed-off-by: Sujith H <Sujith_Haridasan@mentor.com>