Fixed CMake file. Fixed methods to use shared_ptr instead of classic ptr when creating an output frame