add subscribe.cpp to cmakelist