Add cmake target for rocm_smi
rocm_smi will provide cmake files exporting the INCLUDE/LIBRARY targets.
Change-Id: I1943a3142bdc0abd8f03ff62e12e947aac835401
(cherry picked from commit 088fe48d12)
This commit is contained in:
committed by
Shuzhou Liu
orang tua
1447c8327d
melakukan
e6692c08d3
@@ -91,8 +91,16 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL Release)
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
# use the target_include_directories() command to specify the include directories for the target
|
||||
target_include_directories(${OAM_TARGET}
|
||||
PUBLIC
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
|
||||
"$<INSTALL_INTERFACE:{OAM_NAME}/include>")
|
||||
|
||||
|
||||
## Add the install directives for the runtime library.
|
||||
install(TARGETS ${OAM_TARGET}
|
||||
EXPORT rocm_smiTargets
|
||||
LIBRARY DESTINATION ${OAM_NAME}/lib
|
||||
ARCHIVE DESTINATION ${OAM_NAME}/lib
|
||||
COMPONENT ${OAM_COMPONENT})
|
||||
|
||||
Reference in New Issue
Block a user