re-organize cmakefiles