ROCM cmake modules provides cmake modules for common build tasks needed for the ROCM software stack. To install from source, just run:
mkdir build
cd build
cmake ..
cmake --build . --target install
rocm_create_package(
NAME <name>
[DESCRIPTION <description>]
[SECTION <section>]
[MAINTAINER <maintainer>]
[LDCONFIG_DIR <lib-directory>]
[PREFIX <path>]
[LDCONFIG]
)
Sets up CPack packaging.
rocm_install_symlink_subdir(subdir)
Install symlinks which point into the subdir
directory.
rocm_install_targets(
TARGETS <target>...
[PREFIX <path>]
[EXPORT <export-file>]
[INCLUDE <directory>...]
)
Install targets into the appropriate directory.
rocm_export_targets(
[NAMESPACE <namespace>]
[EXPORT <export>]
[INCLUDE <cmake-file>...]
[NAME <name>]
[COMPATIBILITY <compatibility>]
[PREFIX <prefix>]
[TARGETS <targets>...]
[DEPENDS [PACKAGE <package-name>]...]
)
Export the installed targets so they can be consumed with find_package
.
rocm_configure_package_config_file(<input> <output>
INSTALL_DESTINATION <path>
[PATH_VARS <var>...]
[PREFIX <path>]
)
Configure the the config file used found be find_package
.
rocm_get_version(<output-variable>
[VERSION <version>]
[DIRECTORY <path>]
)
Get the version of directory using git tags if possible.
rocm_setup_version(
VERSION <version>
[NO_GIT_TAG_VERSION]
)
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.