2c171767b3
Main CMake improvements: * Add rdctst with -DBUILD_TESTS=ON * Set default ROCM_DIR to /opt/rocm/ * Split rdc_libs/CMakeLists.txt into subdirectories * Package tests into rdc-tests.deb and .rpm Misc improvements: * Add .editorconfig to normalize code formatting * Add .gitignore * Expand RPATH for gRPC to reduce LD_LIBRARY_PATH usage * Export compile_commands.json * Show warning and do not install gRPC if GRPC_ROOT is left as default * Move .in files into relevant subdirectories * Move most variables into project CMakeLists.txt to avoid redefinitions * Normalize CMakeLists.txt formatting (4 spaces indentation) * Rename DIAGNOSTIC_LIB to RDC_ROCR_LIB * Update gRPC version in README to 1.44.0 * Remove gtest source * Pull gtest from github if not installed Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com> Depends-On: I1039ef61247e3f0ff822925cc869fb0c2bf3af85 Change-Id: I879b21428e6642f19fda67092b365d8b78b7ba7b
20 regels
621 B
CMake
20 regels
621 B
CMake
# - Config file for the rdc package
|
|
# It defines the following variables
|
|
# RDC_INCLUDE_DIRS - include directories for rdc
|
|
# RDC_LIBRARIES - libraries to link against
|
|
|
|
# Compute paths
|
|
get_filename_component(RDC_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
set(ROCM_RDC_INCLUDE_DIR "@CONF_INCLUDE_DIRS@")
|
|
set(ROCM_RDC_LIB_DIR "@CONF_LIB_DIR@")
|
|
|
|
|
|
# Our library dependencies (contains definitions for IMPORTED targets)
|
|
if(NOT TARGET rdc_libs AND NOT rdc_BINARY_DIR)
|
|
include("${RDC_CMAKE_DIR}/rdcTargets.cmake")
|
|
endif()
|
|
|
|
# These are IMPORTED targets created by rdcTargets.cmake
|
|
set(ROCM_RDC_LIBRARIES "@CONF_LIBS@")
|
|
|