Add dependencies to cm