Adding cmake files to build spams independently