can we have this as a cmake command and cmake export?