Skip to content

feizheng10/rocm-cmake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rocm cmake modules

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

ROCMCreatePackage

rocm_create_package

rocm_create_package(
    NAME <name>
    [DESCRIPTION <description>]
    [SECTION <section>]
    [MAINTAINER <maintainer>]
    [LDCONFIG_DIR <lib-directory>]
    [PREFIX <path>]
    [LDCONFIG]
)

Sets up CPack packaging.

ROCMInstallSymlinks

rocm_install_symlink_subdir

rocm_install_symlink_subdir(subdir)

Install symlinks which point into the subdir directory.

ROCMInstallTargets

rocm_install_targets

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

Install targets into the appropriate directory.

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>]...]
)

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

ROCMPackageConfigHelpers

rocm_configure_package_config_file

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.

ROCMSetupVersion

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]
)

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.

About

Rocm cmake modules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 96.3%
  • C++ 3.1%
  • C 0.6%