ROCMSetupVersion

Commands

rocm_get_version
rocm_get_version(<output-variable>
    [VERSION <version>]
    [DIRECTORY <path>]
)

Get the version of directory using git tags if possible.

rocm_setup_version
rocm_setup_version(
    VERSION <version>
    [NO_GIT_TAG_VERSION]
    [PARENT <commit>]
)

Setup the version for the project. This will try to use git tag to set the version if possible unless NO_GIT_TAG_VERSION is passed. The PARENT argument can be used to set the commit to start the count of number of commits to the current revision.