ROCMInstallTargets

Contents

ROCMInstallTargets#

Applies to Linux and Windows

2024-02-21

2 min read time

Commands#

rocm_install#
rocm_install(TARGETS <target>... [<arg>...])
rocm_install(<FILES | PROGRAMS> <file>... [<arg>...])
rocm_install(DIRECTORY <dir>... [<arg>...])
rocm_install(SCRIPT <file> [<arg>...])
rocm_install(CODE <code> [<arg>...])
rocm_install(EXPORT <export-name> [<arg>...])

Wraps installers to install to the correct component (devel or runtime) unless COMPONENT is specified. The TARGETS signature wraps rocm_install_targets, all other signatures wrap install.

rocm_install_targets#
rocm_install_targets(
    TARGETS <target>...
    [PREFIX <path>]
    [EXPORT <export-file>]
    [INCLUDE <directory>...]
    [COMPONENT <component>]
)

Install targets into the appropriate directory. Unless COMPONENT is specified, libraries will be installed to the base package and namelinked in the devel package, and everything else will be installed to the devel package.

rocm_export_targets#
rocm_export_targets(
    [NAMESPACE <namespace>]
    [EXPORT <export>]
    [INCLUDE <cmake-file>...]
    [NAME <name>]
    [COMPATIBILITY <compatibility>]
    [PREFIX <prefix>]
    [TARGETS <targets>...]
    [DEPENDS [PACKAGE <package-name>]...]
    [STATIC_DEPENDS [PACKAGE <package-name>]...]
)

Export the installed targets so they can be consumed with find_package.