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:
Bill(Shuzhou) Liu
2021-08-30 11:08:33 -04:00
committed by Shuzhou Liu
orang tua 1447c8327d
melakukan e6692c08d3
5 mengubah file dengan 82 tambahan dan 0 penghapusan
+8
Melihat File
@@ -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})