Added API.cpp to cmakelist