added dynamic layer to cmake